Skip to content

Commit

Permalink
fixed searching for payments when bounty is not assigned
Browse files Browse the repository at this point in the history
  • Loading branch information
elraphty committed Oct 21, 2024
1 parent cc50957 commit b538b49
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ function MobileView(props: CodingBountiesProps) {
}, [main, startPolling]);

useEffect(() => {
if (completed && !paid) {
if (completed && !paid && assignee) {
setPendingPaymentloading(true);
pollPendingPayment(id ?? 0);
}
Expand All @@ -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);
Expand Down

0 comments on commit b538b49

Please sign in to comment.