From 2e36b01266d5c2b3c545985bae59b79db8c6f316 Mon Sep 17 00:00:00 2001 From: gibbyb Date: Mon, 21 Oct 2024 11:04:42 -0500 Subject: [PATCH] Fix errors --- components/home/RelationshipView.tsx | 2 +- components/services/SecureStore.tsx | 3 --- constants/APIs.ts | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/components/home/RelationshipView.tsx b/components/home/RelationshipView.tsx index 97648c5..a77ee59 100644 --- a/components/home/RelationshipView.tsx +++ b/components/home/RelationshipView.tsx @@ -114,7 +114,7 @@ const RelationshipView: React.FC = ({ pfpUrl }) => { setStatus(null); } } catch (error) { - console.error('Error updating relationship status:', error); + console.log('Error updating relationship status:', error); } }; const handleAcceptRequest = () => handleUpdateRelationshipStatus('accepted'); diff --git a/components/services/SecureStore.tsx b/components/services/SecureStore.tsx index ea74b3a..53e7bb1 100644 --- a/components/services/SecureStore.tsx +++ b/components/services/SecureStore.tsx @@ -131,12 +131,9 @@ export const saveInitialData = async (initialData: InitialData) => { try { await SecureStore.setItemAsync('user', JSON.stringify(initialData.user)); if (initialData.relationshipData) { - console.log('Saving relationship data to SecureStore...'); - console.log('Relationship:', initialData.relationshipData.relationship); await SecureStore.setItemAsync( 'relationship', JSON.stringify(initialData.relationshipData.relationship) ); - console.log('Partner:', initialData.relationshipData.partner); await SecureStore.setItemAsync( 'partner', JSON.stringify(initialData.relationshipData.partner) ); diff --git a/constants/APIs.ts b/constants/APIs.ts index 38b8c6d..f6d7a9f 100644 --- a/constants/APIs.ts +++ b/constants/APIs.ts @@ -141,7 +141,6 @@ export const updateRelationshipStatus = async (userId: number, status: 'accepted const updatedRelationshipData = await response.json() as RelationshipData; return updatedRelationshipData; } catch (error: unknown) { - console.error('Error updating relationship status:', error); throw error; } };