Skip to content

Commit

Permalink
Merge pull request #1269 from aliraza556/viewing-bounty-twice
Browse files Browse the repository at this point in the history
fix(bounty-twice): Fixed Duplicate PopUp Issue When Viewing Bounty From Profile
  • Loading branch information
elraphty authored Jan 9, 2024
2 parents c03872a + 0c79cad commit b97bc38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/app/src/pages/people/tabs/Wanted.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ export const Wanted = observer(() => {
href={`${url}/${w.body.id}/${i}`}
key={w.body.id}
isMobile={false}
onClick={() => {
onClick={(e: any) => {
e.preventDefault();
ui.setBountyPerson(person?.id);
history.push({
pathname: `${url}/${w.body.id}/${i}`
Expand Down
3 changes: 2 additions & 1 deletion frontend/app/src/people/widgetViews/UserTicketsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ const UserTickets = () => {
<WantedView
colors={color}
showName
onPanelClick={() => {
onPanelClick={(e: any) => {
e.preventDefault();
onPanelClick(body.id, i);
ui.setBountyPerson(person?.id);
setBountyOwner(person);
Expand Down

0 comments on commit b97bc38

Please sign in to comment.