refactor(templates): simplify ternary condition for undefined
This commit is contained in:
parent
901c8fd672
commit
495e5e2e7e
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue