Skip to content

Commit f1e78d8

Browse files
author
Llorenç Muntaner
authored
Use ?? instead of || (#3299)
* Use ?? instead of || * Fix $ in front of feature flag
1 parent 73d380a commit f1e78d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/frontend/src/lib/components/wizards/auth/views/PickAuthenticationMethod.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
5959
const supportsPasskeys = nonNullish(window.PublicKeyCredential);
6060
const showGoogleButton =
61-
canisterConfig.openid_google?.[0]?.[0] && !ENABLE_GENERIC_OPEN_ID;
62-
const openIdProviders = canisterConfig.openid_configs?.[0] || [];
61+
canisterConfig.openid_google?.[0]?.[0] && !$ENABLE_GENERIC_OPEN_ID;
62+
const openIdProviders = canisterConfig.openid_configs?.[0] ?? [];
6363
</script>
6464

6565
<div class="flex flex-col items-stretch gap-6">

0 commit comments

Comments
 (0)