diff --git a/src/layouts/Main.tsx b/src/layouts/Main.tsx index 3e6be26..5410dec 100644 --- a/src/layouts/Main.tsx +++ b/src/layouts/Main.tsx @@ -58,12 +58,12 @@ export const MainLayout = () => { } const login = useCallback(async () => { + dispatch(updateLoginMethod(LoginMethod.nostrLogin)) + const nostrController = NostrController.getInstance() const authController = new AuthController() const pubkey = await nostrController.capturePublicKey() - dispatch(updateLoginMethod(LoginMethod.nostrLogin)) - const redirectPath = await authController.authAndGetMetadataAndRelaysMap(pubkey)