Skip to content

Commit

Permalink
fix: deployed fix for domains
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Apr 7, 2023
1 parent a4e8a69 commit 960c627
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/web/my-account/retrieve-domains.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ async function retrieveDomains(ctx, next) {

if (count > 0) return next();

if (ctx.state.domains.some((d) => !d.is_global)) return next();

// otherwise redirect user to create a new domain for onboarding
if (!ctx.api)
ctx.flash('custom', {
Expand Down

0 comments on commit 960c627

Please sign in to comment.