fix: permissions with value>1000 (#14249)

This commit is contained in:
Igor Sirotin 2024-04-04 09:45:25 +01:00 committed by GitHub
parent de74a6ce03
commit 8d6454367a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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()
}