diff --git a/packages/yoroi-extension/app/api/common/lib/MultiToken.js b/packages/yoroi-extension/app/api/common/lib/MultiToken.js index 1c3b6863c5..472e2e73ef 100644 --- a/packages/yoroi-extension/app/api/common/lib/MultiToken.js +++ b/packages/yoroi-extension/app/api/common/lib/MultiToken.js @@ -32,12 +32,19 @@ export class MultiToken { |}): MultiToken { try { return new MultiToken( - multiTokenData.values.map(({ identifier, networkId, amount }) => ({ - identifier, - networkId, - // $FlowIgnore - amount: new BigNumber({ ...amount, _isBigNumber: true }), - })), + multiTokenData.values.map(({ identifier, networkId, amount }) => { + const fixedAmount = new BigNumber( + typeof amount === 'object' + ? { ...amount, _isBigNumber: true } + : amount + ); + return ({ + identifier, + networkId, + // $FlowIgnore + amount: fixedAmount, + }); + }), multiTokenData.defaults ); } catch (e) {