Skip to content

Commit 09b7493

Browse files
committed
fix(mobile): reset loading state on master password screen mount
1 parent f6699cf commit 09b7493

File tree

1 file changed

+6
-0
lines changed
  • apps/mobile/v1/src/components/MasterPasswordDialog

1 file changed

+6
-0
lines changed

apps/mobile/v1/src/components/MasterPasswordDialog/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ export function MasterPasswordScreen({
3131
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Medium);
3232
}, []);
3333

34+
// Reset loading state when component mounts or isNewSetup changes
35+
// This ensures the form is shown after sign out/sign in
36+
useEffect(() => {
37+
setIsLoading(false);
38+
}, [isNewSetup]);
39+
3440
const handleFormSubmit = async (password: string) => {
3541
setIsLoading(true);
3642
try {

0 commit comments

Comments
 (0)