Skip to content

Commit

Permalink
fixed profile ticket bug
Browse files Browse the repository at this point in the history
  • Loading branch information
elraphty committed Oct 7, 2023
1 parent a059ee5 commit 2a05454
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 2a05454

Please sign in to comment.