Skip to content

Commit

Permalink
Merge pull request stakwork#581 from stakwork/fix/check_payment_witho…
Browse files Browse the repository at this point in the history
…ut_assignee

PR: fixed searching for payments when bounty is not assigned
  • Loading branch information
elraphty authored Oct 21, 2024
2 parents ea2c738 + b538b49 commit edafac6
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 edafac6

Please sign in to comment.