Skip to content

Commit

Permalink
fix(user-image): avoid redundant page refresh
Browse files Browse the repository at this point in the history
Fix: #1034
  • Loading branch information
YLeight committed Dec 26, 2023
1 parent c4f45bb commit 7371606
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions frontend/app/src/people/main/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,8 @@ function Header() {
}, []);

function goToEditSelf() {
const path = location.pathname;
if (ui.meInfo?.id) {
history.push(`/p/${ui.meInfo.owner_pubkey}/organizations`);
if (path.includes('/p')) {
window.location.reload();
}
ui.setSelectedPerson(ui.meInfo.id);
ui.setSelectingPerson(ui.meInfo.id);
}
Expand Down

0 comments on commit 7371606

Please sign in to comment.