mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-02 09:46:38 +00:00
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…
x
Reference in New Issue
Block a user