From 0b2bf13deff518c3ebbdaf4a72d2c162790906b7 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Fri, 13 Jan 2023 16:09:33 -0300
Subject: using extendedStatus

---
 .../taler-wallet-webextension/src/components/PendingTransactions.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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

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;
-- 
cgit v1.2.3

