aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-04-26 18:27:49 -0400
committerIvan Chen <ivan@tagg.id>2021-04-26 18:27:49 -0400
commit8253184aef6051f053cc40e95e9c3433fae591ed (patch)
tree5828fe6d4ab2f15053f9217eef03bb36e88b0567 /src
parent96781f389a31162809ff463cc187d56fc3354e49 (diff)
fixed bug by updating timing
Diffstat (limited to 'src')
-rw-r--r--src/screens/chat/ChatResultsCell.tsx4
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);
}