Skip to content

Commit

Permalink
Fixing profile switching
Browse files Browse the repository at this point in the history
  • Loading branch information
Snehal Sonawane authored and Snehal Sonawane committed Jan 6, 2025
1 parent 7dfd3c9 commit 75efa7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/blocks/global-navigation/global-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ export const CONFIG = {
if (name === 'System' && payload.subType === 'SignOut') {
executeDefaultAction();
}
if (name === 'System' && payload.subtype === 'ProfileSwitch') {
executeDefaultAction.then((profile) => {
if (name === 'System' && payload.subType === 'ProfileSwitch') {
executeDefaultAction().then((profile) => {
if (profile) window.location.reload();
});
}
Expand Down

0 comments on commit 75efa7d

Please sign in to comment.