diff options
author | Ivan Chen <ivan@tagg.id> | 2021-04-26 18:27:49 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-04-26 18:27:49 -0400 |
commit | 8253184aef6051f053cc40e95e9c3433fae591ed (patch) | |
tree | 5828fe6d4ab2f15053f9217eef03bb36e88b0567 | |
parent | 96781f389a31162809ff463cc187d56fc3354e49 (diff) |
fixed bug by updating timing
-rw-r--r-- | src/screens/chat/ChatResultsCell.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
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<ChatResults> = ({ @@ -47,7 +47,7 @@ const ChatResultsCell: React.FC<ChatResults> = ({ setChannel(channel); setTimeout(() => { navigation.navigate('Chat'); - }, 100); + }, 250); } catch (error) { Alert.alert(ERROR_FAILED_TO_CREATE_CHANNEL); } |