refactor(templates): simplify ternary condition for undefined

This commit is contained in:
Julien Oculi 2024-06-17 12:01:56 +02:00
parent 901c8fd672
commit 495e5e2e7e

View file

@ -90,9 +90,7 @@ function Welcome(
style={{ width: '100%', textAlign: 'center', padding: '1rem' }}
>
<Button
href={(endpoint && endpoint.length > 1)
? endpoint
: 'https://cohabit.fr/profil'}
href={endpoint?.length ? endpoint : 'https://cohabit.fr/profil'}
style={buttonCss}
>
Accéder à mon compte