From b538b49d2529b0f099d1cccfd068455153d1073b Mon Sep 17 00:00:00 2001 From: elraphty Date: Mon, 21 Oct 2024 14:27:59 +0100 Subject: [PATCH] fixed searching for payments when bounty is not assigned --- .../widgetViews/summaries/wantedSummaries/CodingBounty.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/people/widgetViews/summaries/wantedSummaries/CodingBounty.tsx b/src/people/widgetViews/summaries/wantedSummaries/CodingBounty.tsx index 5d40ea72..0d630928 100644 --- a/src/people/widgetViews/summaries/wantedSummaries/CodingBounty.tsx +++ b/src/people/widgetViews/summaries/wantedSummaries/CodingBounty.tsx @@ -323,7 +323,7 @@ function MobileView(props: CodingBountiesProps) { }, [main, startPolling]); useEffect(() => { - if (completed && !paid) { + if (completed && !paid && assignee) { setPendingPaymentloading(true); pollPendingPayment(id ?? 0); } @@ -333,7 +333,7 @@ function MobileView(props: CodingBountiesProps) { clearInterval(pendingIntervalRef.current); } }; - }, [completed, id, paid, pollPendingPayment, pendingIntervalRef]); + }, [completed, id, paid, assignee, pollPendingPayment, pendingIntervalRef]); const makePayment = async () => { setPaymentLoading(true);