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' }}
|
style={{ width: '100%', textAlign: 'center', padding: '1rem' }}
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
href={(endpoint && endpoint.length > 1)
|
href={endpoint?.length ? endpoint : 'https://cohabit.fr/profil'}
|
||||||
? endpoint
|
|
||||||
: 'https://cohabit.fr/profil'}
|
|
||||||
style={buttonCss}
|
style={buttonCss}
|
||||||
>
|
>
|
||||||
Accéder à mon compte
|
Accéder à mon compte
|
||||||
|
|
Loading…
Reference in a new issue