We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afe564b commit 138cb03Copy full SHA for 138cb03
src/frontend/src/routes/(new-styling)/authorize/+page.ts
@@ -6,12 +6,14 @@ import {
6
AuthenticationV2Events,
7
authenticationV2Funnel,
8
} from "$lib/utils/analytics/authenticationV2Funnel";
9
+import { nonNullish } from "@dfinity/utils";
10
11
let firstVisit = true;
12
13
export const load: PageLoad = () => {
- const lastUsedIdentityAvailable =
14
- Object.values(get(lastUsedIdentitiesStore)).length > 0;
+ const lastUsedIdentityAvailable = nonNullish(
15
+ get(lastUsedIdentitiesStore).selected,
16
+ );
17
18
if (firstVisit) {
19
firstVisit = false;
0 commit comments