From 452775b1bb6693d2968edd110f7336af28d6f0c9 Mon Sep 17 00:00:00 2001 From: Juan Manuel <44899916+angarita-dev@users.noreply.github.com> Date: Tue, 21 Dec 2021 17:03:39 -0500 Subject: [PATCH] Parsed exponential --- source/Background/Controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Background/Controller.js b/source/Background/Controller.js index 88d974b3..ddf880ab 100644 --- a/source/Background/Controller.js +++ b/source/Background/Controller.js @@ -396,7 +396,7 @@ backgroundController.exposeController( const assets = await getBalance(); const parsedAmount = (transfer.amount / E8S_PER_ICP); if (assets?.[DEFAULT_CURRENCY_MAP.ICP]?.amount > parsedAmount) { - transfer.amount = parsedAmount.toString(); + transfer.amount = fromExponential(parsedAmount); const response = await sendToken(transfer); if (response.error) { callback(null, false);