Skip to content

armgit / ente

Public Imported from GitHub
0

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

.get returns null when the property is not present

Manav Rathi59ed89cba172
diff --git a/web/apps/auth/src/services/code.ts b/web/apps/auth/src/services/code.ts
index 4eb964d31d..835bb689dd 100644
--- a/web/apps/auth/src/services/code.ts
+++ b/web/apps/auth/src/services/code.ts
@@ -79,7 +79,7 @@ const parseAccount = (url: URL): string | undefined => {
const parseIssuer = (url: URL): string => {
// If there is a "issuer" search param, use that.
let issuer = url.searchParams.get("issuer");
- if (issuer !== undefined) {
+ if (issuer) {
// This is to handle bug in old versions of Ente Auth app.
if (issuer.endsWith("period")) {
issuer = issuer.substring(0, issuer.length - 6);