fix: effective amount is higher that raw amount in transfer
This commit is contained in:
parent
346056ca91
commit
81dda3b6b1
@ -1285,7 +1285,7 @@ export function InvoiceDetails({ amount }: { amount: AmountWithFee }): VNode {
|
|||||||
export function TransferDetails({ amount }: { amount: AmountWithFee }): VNode {
|
export function TransferDetails({ amount }: { amount: AmountWithFee }): VNode {
|
||||||
const { i18n } = useTranslationContext();
|
const { i18n } = useTranslationContext();
|
||||||
|
|
||||||
const fee = Amounts.sub(amount.raw, amount.effective).amount;
|
const fee = Amounts.sub(amount.effective, amount.raw).amount;
|
||||||
|
|
||||||
const maxFrac = [amount.raw, amount.effective, fee]
|
const maxFrac = [amount.raw, amount.effective, fee]
|
||||||
.map((a) => Amounts.maxFractionalDigits(a))
|
.map((a) => Amounts.maxFractionalDigits(a))
|
||||||
|
Loading…
Reference in New Issue
Block a user