Skip to content

Commit

Permalink
Merge pull request #801 from stakwork/fix/old_bounty_url
Browse files Browse the repository at this point in the history
fixed profile bounty copy link bug
  • Loading branch information
elraphty authored Oct 7, 2023
2 parents 2b60012 + 2a05454 commit 9108016
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/app/src/pages/tickets/TicketModalPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const TicketModalPage = observer(({ setConnectPerson }: Props) => {

if (isMobile) {
return (
<Modal visible={activeListIndex !== -1} fill={true}>
<Modal visible={activeListIndex !== -1 && (bountyId || search.created)} fill={true}>
<FocusedView
person={connectPersonBody}
personBody={connectPersonBody}
Expand All @@ -112,7 +112,7 @@ export const TicketModalPage = observer(({ setConnectPerson }: Props) => {

return (
<Modal
visible={activeListIndex !== -1}
visible={activeListIndex !== -1 && (bountyId || search.created)}
envStyle={{
background: color.pureWhite,
...focusedDesktopModalStyles,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,10 @@ function WantedSummary(props: WantedSummaryProps) {
const { location } = window;
const { host } = location;
// eslint-disable-next-line prefer-destructuring
const id = location.href.split('/')[4];
const id = location.href.split('/')[6];

const el = document.createElement('input');
el.value = `${host}/bounty/${id}?created=${created}`;
el.value = `${host}/bounty/${id}`;
document.body.appendChild(el);
el.select();

Expand Down

0 comments on commit 9108016

Please sign in to comment.