all repos — caroster @ 7c4ac0f6b287186311022f3893657bf173dcd540

[Octree] Group carpool to your event https://caroster.io

🚑 Fix 'enabled_modules' is null on event creation
Tim Izzo tim@5ika.ch
Mon, 19 Feb 2024 09:44:46 +0100
commit

7c4ac0f6b287186311022f3893657bf173dcd540

parent

e2598a4ee8509d750b345ddab93497d0102ac1d8

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M frontend/containers/Travel/index.tsxfrontend/containers/Travel/index.tsx

@@ -24,7 +24,9 @@ }

const Travel = (props: Props) => { const {travel} = props; - const isCarosterPlus = useEventStore(s => s.event.enabled_modules.includes('caroster-plus')); + const isCarosterPlus = useEventStore(s => + s.event.enabled_modules?.includes('caroster-plus') + ); const { userPermissions: {canDeletePassenger, canJoinTravels, canAddToTravel}, } = usePermissions();