Skip to content

Commit

Permalink
fix: add missing param into redirectToFactorChooser call
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Nov 16, 2023
1 parent 7d8f419 commit 21dee6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/build/passwordless-shared3.js

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

4 changes: 2 additions & 2 deletions lib/ts/recipe/passwordless/components/features/mfa/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export function useChildProps(
return history(-1);
},
onFactorChooserButtonClicked: () => {
return MultiFactorAuth.getInstanceOrThrow().redirectToFactorChooser(history);
return MultiFactorAuth.getInstanceOrThrow().redirectToFactorChooser(false, history);
},
recipeImplementation: recipeImplementation,
config: recipe.config,
Expand Down Expand Up @@ -292,7 +292,7 @@ function useOnLoad(
) {
const fetchMFAInfo = React.useCallback(
async () => MultiFactorAuth.getInstanceOrThrow().webJSRecipe.getMFAInfo({ userContext }),
[props.recipe, userContext]
[userContext]
);
const handleLoadError = React.useCallback(
() => dispatch({ type: "setError", error: "SOMETHING_WENT_WRONG_ERROR" }),
Expand Down

0 comments on commit 21dee6b

Please sign in to comment.