From 88d1ec9dff5674e8759ca33e4255af16b4bf51a5 Mon Sep 17 00:00:00 2001
From: Ivan Chen <ivan@tagg.id>
Date: Mon, 5 Apr 2021 15:29:11 -0400
Subject: code cleanup

---
 src/components/messages/MessagesHeader.tsx | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'src/components/messages/MessagesHeader.tsx')

diff --git a/src/components/messages/MessagesHeader.tsx b/src/components/messages/MessagesHeader.tsx
index 3b8144f7..d8445580 100644
--- a/src/components/messages/MessagesHeader.tsx
+++ b/src/components/messages/MessagesHeader.tsx
@@ -16,9 +16,7 @@ const MessagesHeader: React.FC<MessagesHeaderProps> = ({createChannel}) => {
       <View style={styles.flex} />
       <TouchableOpacity
         style={styles.compose}
-        onPress={() => {
-          createChannel();
-        }}>
+        onPress={createChannel}>
         <Text>Compose</Text>
       </TouchableOpacity>
     </View>
-- 
cgit v1.2.3-70-g09d2

