fix(airdrop): Incorrect default amount when airdropping a community token or setting token permission

(regression after a12a6a48)

fixes #15264
This commit is contained in:
Andrey Bocharnikov 2024-06-25 17:28:02 +04:00
parent 174114538e
commit 588be3c60e
1 changed files with 2 additions and 2 deletions

View File

@ -42,8 +42,8 @@ Input {
const amountNumber = SQUtils.AmountsArithmetic.toNumber(
amount, multiplierIndex)
root.text = LocaleUtils.numberToLocaleString(amountNumber, -1,
root.locale)
const precision = LocaleUtils.fractionalPartLength(amountNumber)
root.text = LocaleUtils.numberToLocaleString(amountNumber, precision, root.locale)
}
onTextChanged: d.validate()