@@ -4,7 +4,6 @@ import { Trans, useTranslation } from 'react-i18next';
44import sanitizeHtml from 'sanitize-html' ;
55
66import { useDeleteVerenigingsloketByOrganizerIdMutation } from '@/hooks/api/organizers' ;
7- import { FeatureFlags , useFeatureFlag } from '@/hooks/useFeatureFlag' ;
87import { SupportedLanguage } from '@/i18n/index' ;
98import { Organizer } from '@/types/Organizer' ;
109import { Button , ButtonVariants } from '@/ui/Button' ;
@@ -209,7 +208,6 @@ const VerenigingsloketPreview = ({
209208} : VerenigingsloketProps ) => {
210209 const { t } = useTranslation ( ) ;
211210 const queryClient = useQueryClient ( ) ;
212- const [ showVerenigingsloket ] = useFeatureFlag ( FeatureFlags . VERENIGINGSLOKET ) ;
213211 const [ isDeleteModalVisible , setIsDeleteModalVisible ] = useState ( false ) ;
214212 const deleteVerenigingsloketMutation =
215213 useDeleteVerenigingsloketByOrganizerIdMutation ( {
@@ -219,14 +217,11 @@ const VerenigingsloketPreview = ({
219217 queryKey : [ 'organizers-verenigingsloket' , organizerId ] ,
220218 } ) ;
221219 } ,
222- onError : ( error ) => {
223- console . warn ( 'Failed to delete verenigingsloket:' , error ) ;
220+ onError : ( ) => {
224221 setIsDeleteModalVisible ( false ) ;
225222 } ,
226223 } ) ;
227224
228- if ( ! showVerenigingsloket ) return null ;
229-
230225 const previewUrl = url . replace ( 'https://www.' , '' ) ;
231226
232227 const helpdeskUrl =
0 commit comments