Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix email verify dialog blocking ui after login

ammarahm-ed517a56e38cea
diff --git a/apps/mobile/src/components/LoginDialog/index.js b/apps/mobile/src/components/LoginDialog/index.js
index 7bdaf1c07..aa3d57f72 100644
--- a/apps/mobile/src/components/LoginDialog/index.js
+++ b/apps/mobile/src/components/LoginDialog/index.js
@@ -1,4 +1,5 @@
import React, {useEffect, useRef, useState} from 'react';
+import { Platform } from 'react-native';
import {ActivityIndicator, Modal, TouchableOpacity, View} from 'react-native';
import {useSafeAreaInsets} from 'react-native-safe-area-context';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
@@ -196,7 +197,8 @@ const LoginDialog = () => {
if (user && !user.isEmailConfirmed) {
close();
setEmailVerifyMessage(dispatch);
- await sleep(300);
+ await sleep(500);
+ console.log('showing verify email dialog')
PremiumService.showVerifyEmailDialog();
} else {
ToastEvent.show(e.message, 'error', 'local');