Skip to content

Commit

Permalink
fix: &&연산자 -> 삼항 연산자로 수정 (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
lydiacho authored Aug 12, 2024
1 parent b4358bd commit f6d6477
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/views/ResultPage/components/FinalResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const Content = ({ pass }: { pass?: boolean }) => {
href={`https://${import.meta.env.VITE_FINAL_PASS_LINK}`}
target="_blank"
rel="noreferrer noopener">
{`https://${DEVICE_TYPE !== 'DESK' && '\n'}${import.meta.env.VITE_FINAL_PASS_LINK}`}
{`https://${DEVICE_TYPE !== 'DESK' ? '\n' : ''}${import.meta.env.VITE_FINAL_PASS_LINK}`}
</a>
<span>{` )\n`}</span>
<br />
Expand Down
2 changes: 1 addition & 1 deletion src/views/ResultPage/components/ScreeningResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const Content = ({ pass }: { pass?: boolean }) => {
href={`https://${import.meta.env.VITE_SCREENING_PASS_LINK}`}
target="_blank"
rel="noreferrer noopener">
{`https://${DEVICE_TYPE !== 'DESK' && '\n'}${import.meta.env.VITE_SCREENING_PASS_LINK}`}
{`https://${DEVICE_TYPE !== 'DESK' ? '\n' : ''}${import.meta.env.VITE_SCREENING_PASS_LINK}`}
</a>
<span>{` )\n`}</span>
<br />
Expand Down

0 comments on commit f6d6477

Please sign in to comment.