diff options
author | Sebastian <sebasjm@gmail.com> | 2023-01-13 16:09:33 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-01-13 16:09:33 -0300 |
commit | 0b2bf13deff518c3ebbdaf4a72d2c162790906b7 (patch) | |
tree | e8e778cc7cc90daf2a54f32f8c6be5912f814621 /packages/taler-wallet-webextension/src/components | |
parent | bc67ff0c7f298b0657164037ba01e1bc3488202c (diff) | |
download | wallet-core-0b2bf13deff518c3ebbdaf4a72d2c162790906b7.tar.xz |
using extendedStatus
Diffstat (limited to 'packages/taler-wallet-webextension/src/components')
-rw-r--r-- | packages/taler-wallet-webextension/src/components/PendingTransactions.tsx | 5 | ||||
-rw-r--r-- | packages/taler-wallet-webextension/src/components/TransactionItem.tsx | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/src/components/PendingTransactions.tsx b/packages/taler-wallet-webextension/src/components/PendingTransactions.tsx index 80dc18f49..f9b30907d 100644 --- a/packages/taler-wallet-webextension/src/components/PendingTransactions.tsx +++ b/packages/taler-wallet-webextension/src/components/PendingTransactions.tsx @@ -16,6 +16,7 @@ import { AbsoluteTime, Amounts, + ExtendedStatus, NotificationType, Transaction, } from "@gnu-taler/taler-util"; @@ -56,7 +57,9 @@ export function PendingTransactions({ goToTransaction }: Props): VNode { const transactions = !state || state.hasError ? cache.tx - : state.response.transactions.filter((t) => t.pending); + : state.response.transactions.filter( + (t) => t.extendedStatus === ExtendedStatus.Pending, + ); if (state && !state.hasError) { cache.tx = transactions; diff --git a/packages/taler-wallet-webextension/src/components/TransactionItem.tsx b/packages/taler-wallet-webextension/src/components/TransactionItem.tsx index c2c4b52e3..71d7edaf0 100644 --- a/packages/taler-wallet-webextension/src/components/TransactionItem.tsx +++ b/packages/taler-wallet-webextension/src/components/TransactionItem.tsx @@ -22,6 +22,7 @@ import { Transaction, TransactionType, WithdrawalType, + ExtendedStatus, } from "@gnu-taler/taler-util"; import { h, VNode } from "preact"; import { useTranslationContext } from "../context/translation.js"; @@ -52,7 +53,7 @@ export function TransactionItem(props: { tx: Transaction }): VNode { timestamp={AbsoluteTime.fromTimestamp(tx.timestamp)} iconPath={"W"} pending={ - tx.pending + tx.extendedStatus === ExtendedStatus.Pending ? tx.withdrawalDetails.type === WithdrawalType.TalerBankIntegrationApi ? !tx.withdrawalDetails.confirmed |