Skip to content

Commit

Permalink
fix:Dashboard): blocked on 2fa message (#10974)
Browse files Browse the repository at this point in the history
  • Loading branch information
Betree authored Feb 4, 2025
1 parent be50e77 commit 15a8acd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pages/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,10 @@ const DashboardPage = () => {
data-cy="admin-panel-container"
>
<AdminPanelSideBar isLoading={isLoading} activeSlug={activeSlug} menuItems={menuItems} />
{LoggedInUser && require2FAForAdmins(account) && !LoggedInUser.hasTwoFactorAuth ? (
{LoggedInUser &&
require2FAForAdmins(account) &&
!LoggedInUser.hasTwoFactorAuth &&
selectedSection !== 'user-security' ? (
<TwoFactorAuthRequiredMessage className="lg:mt-16" />
) : (
<div className="max-w-(--breakpoint-xl) min-w-0 flex-1">
Expand Down

0 comments on commit 15a8acd

Please sign in to comment.