From 81dda3b6b1500ed11b6ae539ce52a6c7e9a58951 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Fri, 20 Jan 2023 09:59:20 -0300
Subject: fix: effective amount is higher that raw amount in transfer

---
 packages/taler-wallet-webextension/src/wallet/Transaction.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'packages/taler-wallet-webextension/src/wallet/Transaction.tsx')

diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
index 397972636..c9e7bbe85 100644
--- a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
@@ -1285,7 +1285,7 @@ export function InvoiceDetails({ amount }: { amount: AmountWithFee }): VNode {
 export function TransferDetails({ amount }: { amount: AmountWithFee }): VNode {
   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]
     .map((a) => Amounts.maxFractionalDigits(a))
-- 
cgit v1.2.3

