Skip to content

Commit

Permalink
Fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
allgandalf committed May 22, 2024
1 parent f510877 commit f55c624
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/pages/settings/Profile/CustomStatus/StatusPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,16 @@ function StatusPage({draftStatus, currentUserPersonalDetails}: StatusPageProps)
cancel: () => void;
} | null>(null);

useEffect(() => () => {
useEffect(
() => () => {
if (!navigateBackToPreviousScreenTask.current) {
return;
}

navigateBackToPreviousScreenTask.current.cancel();
}, []);
},
[],
);

const navigateBackToPreviousScreen = useCallback(() => Navigation.goBack(), []);
const updateStatus = useCallback(
Expand Down

0 comments on commit f55c624

Please sign in to comment.