aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-03-18 19:35:38 -0400
committerIvan Chen <ivan@tagg.id>2021-03-18 19:35:38 -0400
commitccd7d12fa20591b19ac8c8df0c9146740667f90f (patch)
tree4803fdb37326e606957e3ac61fa0c4d31709430c /src/components
parent5bb8376cd6f3c87af8011c6d523c5a32813970fb (diff)
scroll view fix, search for case insensitive
Diffstat (limited to 'src/components')
-rw-r--r--src/components/friends/InviteFriendTile.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/friends/InviteFriendTile.tsx b/src/components/friends/InviteFriendTile.tsx
index 9613b1ac..3fbf2e73 100644
--- a/src/components/friends/InviteFriendTile.tsx
+++ b/src/components/friends/InviteFriendTile.tsx
@@ -1,5 +1,6 @@
import React, {useEffect, useState} from 'react';
import {
+ Alert,
StyleSheet,
Text,
TouchableOpacity,
@@ -7,6 +8,7 @@ import {
View,
} from 'react-native';
import {TAGG_LIGHT_BLUE} from '../../constants';
+import {ERROR_SOMETHING_WENT_WRONG} from '../../constants/strings';
import {inviteFriendService} from '../../services';
import {normalize} from '../../utils';
@@ -25,6 +27,8 @@ const InviteFriendTile: React.FC<InviteFriendTileProps> = ({item}) => {
);
if (response) {
setInvited(response);
+ } else {
+ Alert.alert(ERROR_SOMETHING_WENT_WRONG);
}
};