Skip to content

Commit

Permalink
The amount of the withdrawals can be a decimal number. It should not …
Browse files Browse the repository at this point in the history
…be limited to integers.
  • Loading branch information
slavcho committed Jan 22, 2024
1 parent 7f347a0 commit 0cfc9a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/admin/withdrawals/EditForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const validationSchema: yup.SchemaOf<WithdrawalData> = yup
.defined()
.shape({
status: yup.string().trim().min(1).max(10).required(),
amount: yup.number().positive().integer().required(),
amount: yup.number().positive().required(),
reason: yup.string().trim().min(1).max(300).required(),
currency: yup.string().oneOf(Object.values(Currency)).required(),
sourceVaultId: yup.string().uuid().required(),
Expand Down

0 comments on commit 0cfc9a8

Please sign in to comment.