fix: permissions with value>1000

This commit is contained in:
Igor Sirotin 2024-04-02 13:55:13 +01:00 committed by Jonathan Rainville
parent 1fc6e1f26b
commit 1a0bcd104d

View File

@ -276,7 +276,7 @@ StatusScrollView {
const modelItem = PermissionsHelpers.getTokenByKey(
root.assetsModel, key)
addItem(Constants.TokenType.ERC20, modelItem, String(AmountsArithmetic.fromNumber(amount, modelItem.decimals)))
addItem(Constants.TokenType.ERC20, modelItem, AmountsArithmetic.fromNumber(amount, modelItem.decimals).toFixed())
dropdown.close()
}
@ -299,7 +299,7 @@ StatusScrollView {
const modelItem = PermissionsHelpers.getTokenByKey(root.assetsModel, key)
d.dirtyValues.selectedHoldingsModel.set(
itemIndex, { type: Constants.TokenType.ERC20, key, amount: String(AmountsArithmetic.fromNumber(amount, modelItem.decimals)) })
itemIndex, { type: Constants.TokenType.ERC20, key, amount: AmountsArithmetic.fromNumber(amount, modelItem.decimals).toFixed() })
dropdown.close()
}