Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Towards noUncheckedIndexedAccess

Manav Rathi390b4b1f810c
diff --git a/web/apps/auth/src/services/code.ts b/web/apps/auth/src/services/code.ts
index 82e369a8e3..1df085b4e3 100644
--- a/web/apps/auth/src/services/code.ts
+++ b/web/apps/auth/src/services/code.ts
@@ -146,8 +146,8 @@ const parseIssuer = (url: URL, path: string): string => {
let p = decodeURIComponent(path);
if (p.startsWith("/")) p = p.slice(1);
- if (p.includes(":")) p = p.split(":")[0];
- else if (p.includes("-")) p = p.split("-")[0];
+ if (p.includes(":")) p = ensure(p.split(":")[0]);
+ else if (p.includes("-")) p = ensure(p.split("-")[0]);
return p;
};