From 5fde088001d9b9a5b06c2ebb515e721cef39f331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Darveau?= Date: Mon, 11 Oct 2021 12:13:04 -0400 Subject: [PATCH] fix bookmarks --- client/src/components/Bookmarks/Bookmarks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/Bookmarks/Bookmarks.tsx b/client/src/components/Bookmarks/Bookmarks.tsx index e8c23d0..9838699 100644 --- a/client/src/components/Bookmarks/Bookmarks.tsx +++ b/client/src/components/Bookmarks/Bookmarks.tsx @@ -62,7 +62,7 @@ const Bookmarks = (props: ComponentProps): JSX.Element => { }); useEffect(() => { - if (bookmarks.length === 0) { + if (!bookmarks || bookmarks.length === 0) { getBookmarks(); } }, [getBookmarks]);