about summary refs log tree commit diff
path: root/src/view/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/com')
-rw-r--r--src/view/com/composer/ExternalEmbed.tsx4
-rw-r--r--src/view/com/modals/ChangeHandle.tsx4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/view/com/composer/ExternalEmbed.tsx b/src/view/com/composer/ExternalEmbed.tsx
index a938562bd..c9200ec63 100644
--- a/src/view/com/composer/ExternalEmbed.tsx
+++ b/src/view/com/composer/ExternalEmbed.tsx
@@ -51,14 +51,14 @@ export const ExternalEmbed = ({
             {link.meta.description}
           </Text>
         )}
-        {!!link.meta?.error && (
+        {link.meta?.error ? (
           <Text
             type="sm"
             numberOfLines={2}
             style={[{color: palError.colors.background}, styles.description]}>
             {link.meta.error}
           </Text>
-        )}
+        ) : null}
       </View>
       <TouchableOpacity
         style={styles.removeBtn}
diff --git a/src/view/com/modals/ChangeHandle.tsx b/src/view/com/modals/ChangeHandle.tsx
index d197083a0..c54c1c043 100644
--- a/src/view/com/modals/ChangeHandle.tsx
+++ b/src/view/com/modals/ChangeHandle.tsx
@@ -484,13 +484,13 @@ function CustomHandleForm({
           </Text>
         </View>
       )}
-      {error && (
+      {error ? (
         <View style={[styles.message, palError.view]}>
           <Text type="md-medium" style={palError.text}>
             {error}
           </Text>
         </View>
-      )}
+      ) : null}
       <Button
         type="primary"
         style={[s.p20, isVerifying && styles.dimmed]}