mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-31 10:31:35 +00:00
Disable maker submit button on bad payment methods field
This commit is contained in:
parent
9a1007775f
commit
2a06eeb02f
@ -423,6 +423,7 @@ const MakerForm = ({
|
|||||||
(!makerHasAmountRange &&
|
(!makerHasAmountRange &&
|
||||||
maker.amount != '' &&
|
maker.amount != '' &&
|
||||||
(maker.amount < amountLimits[0] || maker.amount > amountLimits[1])) ||
|
(maker.amount < amountLimits[0] || maker.amount > amountLimits[1])) ||
|
||||||
|
maker.badPaymentMethod ||
|
||||||
(maker.amount == null && (!makerHasAmountRange || limits.loading)) ||
|
(maker.amount == null && (!makerHasAmountRange || limits.loading)) ||
|
||||||
(makerHasAmountRange && (minAmountError || maxAmountError)) ||
|
(makerHasAmountRange && (minAmountError || maxAmountError)) ||
|
||||||
(!makerHasAmountRange && maker.amount <= 0) ||
|
(!makerHasAmountRange && maker.amount <= 0) ||
|
||||||
@ -745,7 +746,6 @@ const MakerForm = ({
|
|||||||
<Grid item xs={12}>
|
<Grid item xs={12}>
|
||||||
<AutocompletePayments
|
<AutocompletePayments
|
||||||
onAutocompleteChange={handlePaymentMethodChange}
|
onAutocompleteChange={handlePaymentMethodChange}
|
||||||
// listBoxProps={{ sx: { width: '15.3em', maxHeight: '20em' } }}
|
|
||||||
optionsType={fav.mode}
|
optionsType={fav.mode}
|
||||||
error={maker.badPaymentMethod}
|
error={maker.badPaymentMethod}
|
||||||
helperText={maker.badPaymentMethod ? t('Must be shorter than 65 characters') : ''}
|
helperText={maker.badPaymentMethod ? t('Must be shorter than 65 characters') : ''}
|
||||||
@ -760,6 +760,12 @@ const MakerForm = ({
|
|||||||
asFilter={false}
|
asFilter={false}
|
||||||
value={maker.paymentMethods}
|
value={maker.paymentMethods}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
{maker.badPaymentMethod && (
|
||||||
|
<FormHelperText error={true}>
|
||||||
|
{t('Must be shorter than 65 characters')}
|
||||||
|
</FormHelperText>
|
||||||
|
)}
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
{!maker.advancedOptions && pricingMethods ? (
|
{!maker.advancedOptions && pricingMethods ? (
|
||||||
|
Loading…
Reference in New Issue
Block a user