From 9fb5423b587357403ebc865613caac9ffc0ad623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Fri, 21 Jun 2024 11:11:42 +0200 Subject: [PATCH] fix: default to all geographic zones --- webapp-next/components/filters/Regions.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp-next/components/filters/Regions.tsx b/webapp-next/components/filters/Regions.tsx index b5f977a..5728765 100644 --- a/webapp-next/components/filters/Regions.tsx +++ b/webapp-next/components/filters/Regions.tsx @@ -152,7 +152,8 @@ export const RegionFilter = (props: Props) => { if ( context.user && context.user.roles && - context.user.roles.includes('region-france-entiere') + (context.user.roles.includes('region-france-entiere') || + !context.user.roles.length) ) return regionFilters;