From 8253184aef6051f053cc40e95e9c3433fae591ed Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Mon, 26 Apr 2021 18:27:49 -0400 Subject: fixed bug by updating timing --- src/screens/chat/ChatResultsCell.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/screens/chat/ChatResultsCell.tsx b/src/screens/chat/ChatResultsCell.tsx index d947c122..e1eb97dd 100644 --- a/src/screens/chat/ChatResultsCell.tsx +++ b/src/screens/chat/ChatResultsCell.tsx @@ -12,7 +12,7 @@ import {defaultUserProfile} from '../../utils/users'; interface ChatResults { profileData: ProfilePreviewType; loggedInUser: UserType; - setChatModalVisible: Function; + setChatModalVisible: (open: boolean) => void; } const ChatResultsCell: React.FC = ({ @@ -47,7 +47,7 @@ const ChatResultsCell: React.FC = ({ setChannel(channel); setTimeout(() => { navigation.navigate('Chat'); - }, 100); + }, 250); } catch (error) { Alert.alert(ERROR_FAILED_TO_CREATE_CHANNEL); } -- cgit v1.2.3-70-g09d2