diff options
-rw-r--r-- | packages/taler-wallet-core/src/operations/transactions.ts | 4 | ||||
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx | 13 |
2 files changed, 7 insertions, 10 deletions
diff --git a/packages/taler-wallet-core/src/operations/transactions.ts b/packages/taler-wallet-core/src/operations/transactions.ts index d93396ca5..74bc20320 100644 --- a/packages/taler-wallet-core/src/operations/transactions.ts +++ b/packages/taler-wallet-core/src/operations/transactions.ts @@ -770,9 +770,7 @@ function buildTransactionForRefresh( txState: computeRefreshTransactionState(refreshGroupRecord), txActions: computeRefreshTransactionActions(refreshGroupRecord), refreshReason: refreshGroupRecord.reason, - amountEffective: Amounts.stringify( - Amounts.zeroOfCurrency(refreshGroupRecord.currency), - ), + amountEffective: Amounts.stringify(Amounts.sub(outputAmount, inputAmount).amount), amountRaw: Amounts.stringify( Amounts.zeroOfCurrency(refreshGroupRecord.currency), ), diff --git a/packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx b/packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx index bd9f75696..8d31223ed 100644 --- a/packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx +++ b/packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx @@ -14,26 +14,25 @@ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -import { Amounts, ExchangeTosStatus } from "@gnu-taler/taler-util"; -import { Fragment, h, VNode } from "preact"; +import { useTranslationContext } from "@gnu-taler/web-util/browser"; +import { Fragment, VNode, h } from "preact"; import { useState } from "preact/hooks"; import { Amount } from "../../components/Amount.js"; +import { AmountField } from "../../components/AmountField.js"; import { Part } from "../../components/Part.js"; import { QR } from "../../components/QR.js"; import { SelectList } from "../../components/SelectList.js"; -import { Input, LinkSuccess, SvgIcon, WarningBox } from "../../components/styled/index.js"; import { TermsOfService } from "../../components/TermsOfService/index.js"; -import { useTranslationContext } from "@gnu-taler/web-util/browser"; +import { Input, LinkSuccess, SvgIcon, WarningBox } from "../../components/styled/index.js"; import { Button } from "../../mui/Button.js"; +import { Grid } from "../../mui/Grid.js"; import editIcon from "../../svg/edit_24px.inline.svg"; import { ExchangeDetails, - getAmountWithFee, WithdrawDetails, + getAmountWithFee, } from "../../wallet/Transaction.js"; import { State } from "./index.js"; -import { Grid } from "../../mui/Grid.js"; -import { AmountField } from "../../components/AmountField.js"; export function FinalStateOperation(state: State.AlreadyCompleted): VNode { const { i18n } = useTranslationContext(); |