refactor(withdraw): 移除快速提现金额中的无效选项
- 从 quickAmounts 数组中移除 '0.2' 选项 - 防止用户选择低于最低限额的快速金额 refactor(user): 优化用户角色名称获取逻辑 - 移除对 useUser hook 中 getRoleName 的依赖 - 在组件内部实现角色名称获取逻辑 - 优先取用户 roles 数组的第一个角色名称 - 添加默认角色名称为'注册用户'的回退机制
This commit is contained in:
@@ -350,7 +350,7 @@ const DealerWithdraw: React.FC = () => {
|
||||
}
|
||||
}
|
||||
|
||||
const quickAmounts = ['0.2','100', '300', '500', '1000']
|
||||
const quickAmounts = ['100', '300', '500', '1000']
|
||||
|
||||
const setQuickAmount = (amount: string) => {
|
||||
formRef.current?.setFieldsValue({amount})
|
||||
|
||||
Reference in New Issue
Block a user