diff --git a/client/src/components/Administration.tsx b/client/src/components/Administration.tsx index 92a5bfc..4e68988 100644 --- a/client/src/components/Administration.tsx +++ b/client/src/components/Administration.tsx @@ -867,12 +867,11 @@ export default function Administration() { ); }} /> - { - const isEditingSelf = editingUser?.id === currentUser?.id; - return ( + {editingUser?.id !== currentUser?.id && ( + ( Magasin - {isEditingSelf && ( -

- En tant qu'administrateur, vous pouvez accéder à tous les magasins -

- )}
- ); - }} - /> + )} + /> + )}