Skip to content

Commit

Permalink
refactor: use redirectToFactor instead of re-implementing
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Nov 16, 2023
1 parent ea768d1 commit 00ee185
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/build/multifactorauthprebuiltui.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const FactorChooser: React.FC<Prop> = (props) => {
useOnMountAPICall(fetchMFAInfo, checkMFAInfo, handleError, sessionContext.loading === false);

const navigateToFactor = useCallback(
(factorId) => props.recipe.redirect({ action: "GO_TO_FACTOR", factorId }),
(factorId) => props.recipe.redirectToFactor(factorId, false, props.history),
[props.recipe]
);
const signOut = useCallback(async (): Promise<void> => {
Expand Down

0 comments on commit 00ee185

Please sign in to comment.