fix: permissions with value>1000 (#14249)
This commit is contained in:
parent
de74a6ce03
commit
8d6454367a
|
@ -275,7 +275,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()
|
||||
}
|
||||
|
||||
|
@ -298,7 +298,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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue