Skip to content

Commit 0067770

Browse files
committed
refactor: change state to idle if a suspend error happen
1 parent ab5f160 commit 0067770

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/xServices/users/usersXService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export const usersMachine = createMachine(
119119
actions: ["displaySuspendSuccess"],
120120
},
121121
onError: {
122-
target: "error",
122+
target: "idle",
123123
actions: ["assignSuspendUserError", "displaySuspendedErrorMessage"],
124124
},
125125
},

0 commit comments

Comments
 (0)