From 7b6dd72b90245479895372d784d3ab43d576c9b1 Mon Sep 17 00:00:00 2001 From: csawatzky Date: Tue, 10 Jun 2025 10:47:00 -0600 Subject: [PATCH] put the refresh in the finally block since the bin was being refreshed before that changes had occured --- src/bin/BinTransactions.tsx | 6 ++++-- src/pages/Bin.tsx | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/bin/BinTransactions.tsx b/src/bin/BinTransactions.tsx index f8e7c90..2a8d6e2 100644 --- a/src/bin/BinTransactions.tsx +++ b/src/bin/BinTransactions.tsx @@ -162,8 +162,9 @@ export default function BinTransactions(props: Props){ } }).catch(err => { openSnack("There was a problem submitting transaction approval") + }).finally(() => { + refresh() }) - refresh() } } @@ -174,9 +175,10 @@ export default function BinTransactions(props: Props){ openSnack("Transaction rejected") }).catch(err => { openSnack("There was a problem rejecting the transaction") + }).finally(() => { + refresh() }) } - refresh() } const getOptions = (type: pond.ObjectType) => { diff --git a/src/pages/Bin.tsx b/src/pages/Bin.tsx index f8a339f..7d71b07 100644 --- a/src/pages/Bin.tsx +++ b/src/pages/Bin.tsx @@ -266,6 +266,7 @@ export default function Bin(props: Props) { // })) const load = useCallback(() => { + console.log(loadRef.current) if (loadRef.current || user.id() === "") return; setBinLoading(true); loadRef.current = true; @@ -1126,7 +1127,7 @@ export default function Bin(props: Props) { }; return ( - + {showPlenumError()}