Skip to content

Commit

Permalink
No Stack
Browse files Browse the repository at this point in the history
  • Loading branch information
faucomte97 committed Dec 31, 2024
1 parent e41286f commit bb68cea
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/pages/teacherDashboard/account/Manage2FAForm.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button, Grid, Stack, Typography, useTheme } from "@mui/material"
import { Button, Grid, Typography, useTheme } from "@mui/material"
import { ErrorOutlineOutlined } from "@mui/icons-material"
import { type FC } from "react"
import { type SchoolTeacherUser } from "codeforlife/api"
Expand Down Expand Up @@ -116,26 +116,26 @@ const Manage2FAForm: FC<Manage2FAFormProps> = ({ user }) => {

if (!authFactors || authFactors.count === 0) {
return (

Check warning on line 118 in src/pages/teacherDashboard/account/Manage2FAForm.tsx

View check run for this annotation

Codecov / codecov/patch

src/pages/teacherDashboard/account/Manage2FAForm.tsx#L118

Added line #L118 was not covered by tests
<Stack>
<>
<Setup2FAForm user={user} />
</Stack>
</>
)
}

authFactors.data.forEach(authFactor => {

Check warning on line 125 in src/pages/teacherDashboard/account/Manage2FAForm.tsx

View check run for this annotation

Codecov / codecov/patch

src/pages/teacherDashboard/account/Manage2FAForm.tsx#L125

Added line #L125 was not covered by tests
if (authFactor.user === user && authFactor.type === "otp") {
return (

Check warning on line 127 in src/pages/teacherDashboard/account/Manage2FAForm.tsx

View check run for this annotation

Codecov / codecov/patch

src/pages/teacherDashboard/account/Manage2FAForm.tsx#L127

Added line #L127 was not covered by tests
<Stack>
<>
<Edit2FAForm user={user} />
</Stack>
</>
)
}
})

return (

Check warning on line 135 in src/pages/teacherDashboard/account/Manage2FAForm.tsx

View check run for this annotation

Codecov / codecov/patch

src/pages/teacherDashboard/account/Manage2FAForm.tsx#L135

Added line #L135 was not covered by tests
<Stack>
<>
<Setup2FAForm user={user} />
</Stack>
</>
)
}

Expand Down

0 comments on commit bb68cea

Please sign in to comment.