Skip to content

Commit

Permalink
fix a bug caused by invalid hash due to #feedback on /homeworks and /…
Browse files Browse the repository at this point in the history
…dashboard. (temporary fix) TODO: clear that sht
  • Loading branch information
Truiteseche committed Oct 26, 2024
1 parent a39b8f6 commit 95f63d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/app/Header/AccountSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ export default function AccountSelector({ accountsList, activeAccount, setActive
<div className="links">
<Link to={`/app/${activeAccount}/settings`} id="settings-page" onClick={handleClose}><SettingsIcon /> <span className="link-text">Paramètres</span></Link>
<Link to={`/app/${activeAccount}/account`} id="account-page" onClick={handleClose}><AccountIcon /> <span className="link-text">Compte</span></Link>
<Link to="#feedback" replace={true} id="feedback" onClick={handleClose}><FeedbackIcon /> <span className="link-text">Faire un retour</span></Link>
{/* TODO: REMOVE THAT SHIT ↓ */}
<Link to={(location.pathname.endsWith("dashboard") || location.pathname.endsWith("homeworks")) ? "/feedback" : "#feedback"} replace={true} id="feedback" onClick={handleClose}><FeedbackIcon /> <span className="link-text">Faire un retour</span></Link>
<Link to="#patch-notes" replace={true} id="patch-notes" onClick={handleClose}><PatchNotesIcon /> <span className="link-text">Patch Notes</span></Link>
</div>
<div className="change-display-theme-shortcut">
Expand Down

0 comments on commit 95f63d4

Please sign in to comment.