From 9287f25f241f6b836b40d54e76ca25d1733bee43 Mon Sep 17 00:00:00 2001 From: alexm Date: Wed, 22 Dec 2021 09:46:18 +0100 Subject: [PATCH] fix(client_balance): fix if value is 0 --- modules/client/front/balance/create/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/client/front/balance/create/index.js b/modules/client/front/balance/create/index.js index d306c6f843..591af2839e 100644 --- a/modules/client/front/balance/create/index.js +++ b/modules/client/front/balance/create/index.js @@ -82,7 +82,7 @@ class Controller extends Dialog { } set amountToReturn(value) { - if (!value) return; + if (isNaN(value)) return; value = value.toFixed(2);