Skip to content

Commit

Permalink
[Tech] changes after code review
Browse files Browse the repository at this point in the history
  • Loading branch information
claire2212 committed Apr 23, 2024
1 parent 88c72dc commit 2b60815
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/context/useMissionEventContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { useContext } from 'react'
import { MissionEventContext } from './MissionEventContext'

export const useMissionEventContext = () => {
const onboardingContext = useContext(MissionEventContext)
if (onboardingContext === undefined) {
throw new Error('useOnboardingContext must be inside a MissionEventContext')
const missionEventContext = useContext(MissionEventContext)
if (missionEventContext === undefined) {
throw new Error('useMissionEventContext must be inside a MissionEventContext')
}

return onboardingContext
return missionEventContext
}

0 comments on commit 2b60815

Please sign in to comment.