year il y a 1 semaine
Parent
commit
fbbe9c6af7

+ 6 - 3
src/app/[locale]/(TabBar)/deposit/component/deposit/index.tsx

@@ -199,8 +199,12 @@ const Deposit = () => {
             });
             if (!confirmRes) return;
         }
-
-        if (!amount) return Toast.show({ content: t("form.amount") });
+        if (new BigNumber(amount).isLessThan(shopType.condition.min)) {
+            return Toast.show({ content: t("form.amount") });
+        }
+        if (!amount) {
+            return Toast.show({ content: t("form.amount") });
+        }
 
         handleUserRecharge(false);
     };
@@ -315,7 +319,6 @@ const Deposit = () => {
                             <Input
                                 type={"text"}
                                 className={styles.amountInput}
-                                max={shopType?.condition?.max}
                                 onChange={inputChange}
                                 placeholder={`${shopType?.condition?.min}-${shopType?.condition?.max}`}
                             />