Skip to content

armgit / ente

Public Imported from GitHub
0

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

Apply rec

Manav Rathi132e50958900
diff --git a/web/apps/photos/eslint.config.mjs b/web/apps/photos/eslint.config.mjs
index ad8ab00dfa..68b8f15273 100644
--- a/web/apps/photos/eslint.config.mjs
+++ b/web/apps/photos/eslint.config.mjs
@@ -42,13 +42,11 @@ export default [
"@typescript-eslint/no-base-to-string": "off",
"@typescript-eslint/no-unnecessary-type-arguments": "off",
"@typescript-eslint/prefer-for-of": "off",
- "@typescript-eslint/no-confusing-void-expression": "off",
"@typescript-eslint/use-unknown-in-catch-callback-variable": "off",
"@typescript-eslint/restrict-plus-operands": "off",
+ "@typescript-eslint/no-unused-expressions": "off",
"react-hooks/exhaustive-deps": "off",
"react-refresh/only-export-components": "off",
- /** TODO: New during eslint 8=>9 migration */
- "@typescript-eslint/no-unused-expressions": "off",
},
},
];
diff --git a/web/apps/photos/src/components/Upload/Uploader.tsx b/web/apps/photos/src/components/Upload/Uploader.tsx
index e5acb2f6d4..684cdb516a 100644
--- a/web/apps/photos/src/components/Upload/Uploader.tsx
+++ b/web/apps/photos/src/components/Upload/Uploader.tsx
@@ -653,7 +653,8 @@ export default function Uploader({
let notification: NotificationAttributes;
switch (err) {
case CustomError.SESSION_EXPIRED:
- return props.showSessionExpiredMessage();
+ props.showSessionExpiredMessage();
+ return;
case CustomError.SUBSCRIPTION_EXPIRED:
notification = {
variant: "critical",