From 080e76350c2570eeb096fad40fe95f1b766b4539 Mon Sep 17 00:00:00 2001
From: Ivan Chen <ivan@tagg.id>
Date: Mon, 11 Jan 2021 16:11:11 -0500
Subject: created strings.ts and linting

---
 src/components/profile/ProfilePreview.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/components/profile/ProfilePreview.tsx')

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(
-- 
cgit v1.2.3-70-g09d2

