Skip to content

Commit

Permalink
fix: permissions with value>1000
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-sirotin committed Apr 2, 2024
1 parent accd4da commit 2d8eff7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/app/AppLayouts/Communities/views/EditPermissionView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ StatusScrollView {
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()
}

Expand All @@ -298,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()
}

Expand Down

0 comments on commit 2d8eff7

Please sign in to comment.