Skip to content

Commit

Permalink
Merge pull request #6122 from royallsilwallz/fix/6121-logout-from-set…
Browse files Browse the repository at this point in the history
…tings-crash

Fix crash issue when user logout from settings page
  • Loading branch information
ramyaragupathy authored Nov 27, 2023
2 parents d94f350 + 405e3b0 commit 40a24cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/views/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function Settings() {
</div>
<div className="fl w-100 w-40-l pb3 pl3-l">
<PersonalInformationForm />
<OSMCard username={userDetails.username} />
{userDetails?.username && <OSMCard username={userDetails.username} />}
</div>
</div>
</div>
Expand Down

0 comments on commit 40a24cb

Please sign in to comment.