Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

chore: add todo to remove all ternaries from home

thecodrr70cc249382d9
diff --git a/apps/web/src/views/Home.js b/apps/web/src/views/Home.js
index 6015f375d..31486e243 100644
--- a/apps/web/src/views/Home.js
+++ b/apps/web/src/views/Home.js
@@ -42,6 +42,7 @@ function Home() {
ev.removeListener("refreshNotes", onRefreshNotes);
};
}, []);
+ //TODO remove all these ternary operators (they are absolutely horrid).
return (
<Flex flexDirection="column" flex="1 1 auto">
{notes && (notes.length || (notes.items && notes.items.length)) ? (