From 4f3d2ea2e908ba04fcf7a5f61ce3ab5783f68eaa Mon Sep 17 00:00:00 2001 From: saml33 Date: Tue, 5 Dec 2023 10:36:02 +1100 Subject: [PATCH] fix withdraw decimal scale --- components/WithdrawForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/WithdrawForm.tsx b/components/WithdrawForm.tsx index 3a94b172..93d6bc7e 100644 --- a/components/WithdrawForm.tsx +++ b/components/WithdrawForm.tsx @@ -233,7 +233,7 @@ function WithdrawForm({ onSuccess, token }: WithdrawFormProps) { thousandSeparator="," allowNegative={false} isNumericString={true} - decimalScale={bank ? bank.mintDecimals + 2 : 6} + decimalScale={decimals} className={ACCOUNT_ACTIONS_NUMBER_FORMAT_CLASSES} placeholder="0.00" value={inputAmount}