aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/ProfilePreview.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@thetaggid.com>2021-01-15 19:27:03 -0500
committerGitHub <noreply@github.com>2021-01-15 19:27:03 -0500
commit1803da7388902db45ad37fbac509604ae632bdb5 (patch)
treea786919f9bc42f7797367d55ed8f1e099134f368 /src/components/profile/ProfilePreview.tsx
parent4d9efafeb4243e20e1fc936c27b9055c7ec82f8a (diff)
parentcc52dabaaf529763e9c1c4683ba94ed55c5671a8 (diff)
Merge pull request #176 from IvanIFChen/tma498-update-error-strings
[TMA-498] Update Error Strings
Diffstat (limited to 'src/components/profile/ProfilePreview.tsx')
-rw-r--r--src/components/profile/ProfilePreview.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/profile/ProfilePreview.tsx b/src/components/profile/ProfilePreview.tsx
index 134e94cd..23cb2155 100644
--- a/src/components/profile/ProfilePreview.tsx
+++ b/src/components/profile/ProfilePreview.tsx
@@ -21,6 +21,7 @@ import {logout} from '../../store/actions';
import {fetchUserX, userXInStore} from '../../utils';
import {SearchResultsBackground} from '../search';
import NavigationBar from 'src/routes/tabs';
+import {ERROR_UNABLE_TO_VIEW_PROFILE} from '../../constants/strings';
const NO_USER: UserType = {
userId: '',
@@ -96,7 +97,7 @@ const ProfilePreview: React.FC<ProfilePreviewProps> = ({
//If the logged in user is blocked by the user being viewed, do not proceed.
const isUserBlocked = await checkIfUserIsBlocked(user.id);
if (isUserBlocked) {
- Alert.alert('You cannot view this profile');
+ Alert.alert(ERROR_UNABLE_TO_VIEW_PROFILE);
return;
}
const jsonValue = await AsyncStorage.getItem(