Skip to content

armgit / ente

Public Imported from GitHub
0

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

lint rec

Manav Rathi738688c29914
diff --git a/web/apps/auth/src/pages/share.tsx b/web/apps/auth/src/pages/share.tsx
index 92deda823a..00e16a1d93 100644
--- a/web/apps/auth/src/pages/share.tsx
+++ b/web/apps/auth/src/pages/share.tsx
@@ -236,8 +236,8 @@ const getCodeDisplay = (
const progress = ((elapsedTime % stepDuration) / stepDuration) * 100;
return {
- currentCode: formatCode(codes[index] || ""),
- nextCode: formatCode(codes[index + 1] || ""),
+ currentCode: formatCode(codes[index] ?? ""),
+ nextCode: formatCode(codes[index + 1] ?? ""),
progress,
};
};