Skip to content

Commit

Permalink
Fix espace page when no applications (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucieo authored Feb 9, 2024
1 parent 176b0a2 commit b859f1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/pages/espaces/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import PlacesTabs from '~components/Place/PlacesTab'
const Places = () => {
const { currentCampaign } = useCampaignContext()

if (!currentCampaign) return <PlacesPage />
if (!currentCampaign || currentCampaign?.mode !== 'applications')
return <PlacesPage />

return <PlacesTabs />
}
Expand Down

0 comments on commit b859f1a

Please sign in to comment.