Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(core): set state isLoading to false after email changing is confirmed (#9824)

Xun Sun2db9cc392291
diff --git a/packages/frontend/core/src/desktop/pages/auth/confirm-change-email.tsx b/packages/frontend/core/src/desktop/pages/auth/confirm-change-email.tsx
index b67b844c73..2f3d26b611 100644
--- a/packages/frontend/core/src/desktop/pages/auth/confirm-change-email.tsx
+++ b/packages/frontend/core/src/desktop/pages/auth/confirm-change-email.tsx
@@ -40,6 +40,9 @@ export const ConfirmChangeEmail: FC<{
}
}
throw err;
+ })
+ .finally(() => {
+ setIsLoading(false);
});
})().catch(err => {
// TODO(@eyhn): Add error handling