From 2a06eeb02ff0c5b1694a3544b9b7de67988b4d10 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Fri, 26 May 2023 03:42:38 -0700 Subject: [PATCH] Disable maker submit button on bad payment methods field --- frontend/src/components/MakerForm/MakerForm.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/MakerForm/MakerForm.tsx b/frontend/src/components/MakerForm/MakerForm.tsx index dd1632e1..d63dc566 100644 --- a/frontend/src/components/MakerForm/MakerForm.tsx +++ b/frontend/src/components/MakerForm/MakerForm.tsx @@ -423,6 +423,7 @@ const MakerForm = ({ (!makerHasAmountRange && maker.amount != '' && (maker.amount < amountLimits[0] || maker.amount > amountLimits[1])) || + maker.badPaymentMethod || (maker.amount == null && (!makerHasAmountRange || limits.loading)) || (makerHasAmountRange && (minAmountError || maxAmountError)) || (!makerHasAmountRange && maker.amount <= 0) || @@ -745,7 +746,6 @@ const MakerForm = ({ + + {maker.badPaymentMethod && ( + + {t('Must be shorter than 65 characters')} + + )} {!maker.advancedOptions && pricingMethods ? (