From 0cfc9a81903594e49e605066c807c3a76a7f7197 Mon Sep 17 00:00:00 2001 From: Slavcho Ivanov Date: Mon, 22 Jan 2024 21:13:15 +0200 Subject: [PATCH] The amount of the withdrawals can be a decimal number. It should not be limited to integers. --- src/components/admin/withdrawals/EditForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/admin/withdrawals/EditForm.tsx b/src/components/admin/withdrawals/EditForm.tsx index 3c443d67c..2c1e4e06f 100644 --- a/src/components/admin/withdrawals/EditForm.tsx +++ b/src/components/admin/withdrawals/EditForm.tsx @@ -47,7 +47,7 @@ const validationSchema: yup.SchemaOf = 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(),