Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Commit 7f19975

Browse files
authored
Merge pull request #98 from userfront/dev-635-oops-something-went-wrong
Added cases for states that hadn't been accounted for
2 parents 85f2eba + 689602c commit 7f19975

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@userfront/toolkit",
3-
"version": "1.0.6-alpha.1",
3+
"version": "1.0.6-alpha.2",
44
"description": "Bindings and components for authentication with Userfront with React, Vue, other frameworks, and plain JS + HTML",
55
"type": "module",
66
"directories": {

package/src/forms/UniversalForm.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,14 @@ const componentForStep = (state) => {
183183
switch (step) {
184184
case "init":
185185
case "getGlobalTenantId":
186+
case "initUserfront":
187+
case "initFlow":
186188
case "initForm":
187189
case "beginFlow":
188190
case "showPreviewAndFetchFlow":
189191
case "showPlaceholderAndFetchFlow":
190192
case "initPasswordReset":
193+
case "handleLoginWithLink":
191194
if (canShowFlow) {
192195
return {
193196
title: strings[type].title,
@@ -207,6 +210,7 @@ const componentForStep = (state) => {
207210
Component: Placeholder,
208211
};
209212
}
213+
case "noFirstFactors":
210214
case "disabled":
211215
return {
212216
title: strings.general.disabled,

0 commit comments

Comments
 (0)