put the refresh in the finally block since the bin was being refreshed before that changes had occured

This commit is contained in:
csawatzky 2025-06-10 10:47:00 -06:00
parent 72190cb50d
commit 7b6dd72b90
2 changed files with 6 additions and 3 deletions

View file

@ -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) => {

View file

@ -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 (
<PageContainer padding={1}>
<PageContainer spacing={1}>
{showPlenumError()}
<Box
paddingBottom={isMobile || displayMobile ? 1 : 2}