Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
bordalix committed Feb 1, 2022
1 parent 34b972f commit 745b9b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/presentation/components/address-amount-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@ const AddressAmountEnhancedForm = withFormik<AddressAmountFormProps, AddressAmou

amount: Yup.number()
.required('Please enter a valid amount')
.min(getMinAmountFromPrecision(props.asset.precision), 'Amount should be at least 1 satoshi')
.min(
getMinAmountFromPrecision(props.asset.precision),
'Amount should be at least 1 satoshi'
)
.test('insufficient-funds', 'Insufficient funds', (value) => {
return value !== undefined && value <= fromSatoshi(props.balance, props.asset.precision);
}),
Expand Down

0 comments on commit 745b9b7

Please sign in to comment.