Skip to content

armgit / ente

Public Imported from GitHub
0

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

Use a truthy check

Manav Rathi27047da08b57
diff --git a/desktop/src/main/log.ts b/desktop/src/main/log.ts
index 320ff464a3..edffd7f34a 100644
--- a/desktop/src/main/log.ts
+++ b/desktop/src/main/log.ts
@@ -34,7 +34,7 @@ export function logErrorSentry(
}
const logError1 = (message: string, e?: unknown) => {
- if (e === undefined || e === null) {
+ if (!e) {
log.error(message);
return;
}