Skip to content

Commit

Permalink
As per comment change the message in WelcomeActions.
Browse files Browse the repository at this point in the history
  • Loading branch information
dharmik committed Apr 21, 2022
1 parent 375aad5 commit 1978bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/WelcomeActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function show({routes, hideCreateMenu}) {
const exitingToWorkspaceRoute = lodashGet(loginWithShortLivedTokenRoute, 'params.exitTo', '') === 'workspace/new';
const isDisplayingWorkspaceRoute = topRouteName.toLowerCase().includes('workspace') || exitingToWorkspaceRoute;

// It's also possible that we already have a workspace policy. In either case we will not toggle the menu but do still want to set the NVP in this case
// It's also possible that we already have a workspace policy. In either case we will not hide the menu but do still want to set the NVP in this case
// since the user does not need to create a workspace.
if (!Policy.isAdminOfFreePolicy(allPolicies) && !isDisplayingWorkspaceRoute) {
hideCreateMenu();
Expand Down

0 comments on commit 1978bf7

Please sign in to comment.