|
@@ -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}`}
|
|
|
/>
|