Skip to content

Commit

Permalink
fix bounty does navigate to the right page after creation when a user…
Browse files Browse the repository at this point in the history
… is assigned and unassigned
  • Loading branch information
MahtabBukhari committed Mar 12, 2024
1 parent 250ffa3 commit dbf964a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/people/widgetViews/postBounty/PostModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,15 @@ export const PostModal: FC<PostModalProps> = observer(

const getBountyData = useCallback(async () => {
try {
const response = await main.getPeopleBounties();
const response = await main.getPeopleBounties({
page: 1,
resetPage: true,
...{
Open: true,
Assigned: true,
Paid: true
}
});
return response[0].body?.id;
} catch (err) {
console.log('e', err);
Expand Down

0 comments on commit dbf964a

Please sign in to comment.