commit e8bcb952887a843ed07dedba7c13c9f3c8e80e9f parent 3cec744fa1d7e24c3eb0eabfd6eab2f3cc14a7c3 Author: Sebastian <sebasjm@gmail.com> Date: Thu, 20 Mar 2025 10:32:22 -0300 fix: keep long polling when the withdrawal is on selected Diffstat:
| M | packages/bank-ui/src/hooks/account.ts | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/bank-ui/src/hooks/account.ts b/packages/bank-ui/src/hooks/account.ts @@ -138,7 +138,7 @@ export function useWithdrawalDetails(wid: string | undefined) { // retry if error let retry = err !== undefined; // retry if still pending - retry = r !== undefined && r.type === "ok" && r.body.status === "pending"; + retry = r !== undefined && r.type === "ok" && (r.body.status === "pending" || r.body.status === "selected"); return retry; });