Skip to content

Commit

Permalink
Merge pull request #316 from Psychedelic/fix/request-transfer
Browse files Browse the repository at this point in the history
Fix/request transfer
  • Loading branch information
tomiir authored Dec 21, 2021
2 parents 094b0a1 + e162351 commit 62caf38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Background/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 62caf38

Please sign in to comment.