Skip to content

Commit

Permalink
For loop improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
faucomte97 committed Dec 31, 2024
1 parent df62328 commit e41286f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/teacherDashboard/account/Manage2FAForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,15 @@ const Manage2FAForm: FC<Manage2FAFormProps> = ({ user }) => {
)
}

for (const authFactor of authFactors.data) {
console.log(authFactor)
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>
Expand Down

0 comments on commit e41286f

Please sign in to comment.