Skip to content

Commit

Permalink
[cleanup] fix loading issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
ronniebeggs committed May 1, 2024
1 parent 9dd19a8 commit 122e304
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React, { useEffect, useState } from 'react';
import { View, ScrollView, Text } from 'react-native';

import styles from './styles';
// eslint-disable-next-line import/namespace
import CaseSummaryCard from '../../../../Components/CaseSummaryCard/CaseSummaryCard';
import CheckEligibilityButton from '../../../../Components/CheckEligibilityButton/CheckEligibilityButton';
import ClaimStatusBar from '../../../../Components/ClaimStatusBar/ClaimStatusBar';
Expand All @@ -29,7 +28,6 @@ function CaseScreen() {

const getStatus = async (uid: string) => {
const caseStatus = await getCaseStatus(uid);
console.log(caseStatus);
setStatus(caseStatus);
};

Expand All @@ -41,9 +39,11 @@ function CaseScreen() {

useEffect(() => {
navigation.addListener('focus', async () => {
setIsLoading(true);
if (caseUid !== undefined) {
getStatus(caseUid);
await getStatus(caseUid);
}
setIsLoading(false);
});
}, [navigation]);

Expand Down
1 change: 0 additions & 1 deletion src/supabase/queries/cases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ export async function updateCaseStatus(
status: Eligibility,
): Promise<void> {
try {
console.log('update status to: ' + status);
const {
data: { user },
} = await supabase.auth.getUser();
Expand Down

0 comments on commit 122e304

Please sign in to comment.