Skip to content

Commit

Permalink
Added cases for states that hadn't been accounted for
Browse files Browse the repository at this point in the history
  • Loading branch information
drbrady8800 committed Jan 19, 2024
1 parent 85f2eba commit eebc64e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package/src/forms/UniversalForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,14 @@ const componentForStep = (state) => {
switch (step) {
case "init":
case "getGlobalTenantId":
case "initUserfront":
case "initFlow":
case "initForm":
case "beginFlow":
case "showPreviewAndFetchFlow":
case "showPlaceholderAndFetchFlow":
case "initPasswordReset":
case "handleLoginWithLink":
if (canShowFlow) {
return {
title: strings[type].title,
Expand All @@ -207,6 +210,7 @@ const componentForStep = (state) => {
Component: Placeholder,
};
}
case "noFirstFactors":
case "disabled":
return {
title: strings.general.disabled,
Expand Down

0 comments on commit eebc64e

Please sign in to comment.