Skip to content

Commit

Permalink
lint: convert fn to avoid lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
TravellerOnTheRun committed Feb 6, 2024
1 parent 938fc41 commit 055da1a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/screens/profile/ProfileCreateScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const ProfileCreateScreen = ({
}, [navigation])

useEffect(() => {
(async () => {
const fn = async () => {
if (profile.alias && profile.status === ProfileStatus.REQUESTING) {
await dispatch(
commitment({
Expand All @@ -150,7 +150,8 @@ export const ProfileCreateScreen = ({
dispatch(setStatus(ProfileStatus.READY_TO_PURCHASE))
}
}
})()
}
fn()
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])

Expand Down

0 comments on commit 055da1a

Please sign in to comment.