Skip to content

Commit

Permalink
fix bookmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
fdarveau committed Oct 11, 2021
1 parent 349d63c commit 5fde088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/Bookmarks/Bookmarks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const Bookmarks = (props: ComponentProps): JSX.Element => {
});

useEffect(() => {
if (bookmarks.length === 0) {
if (!bookmarks || bookmarks.length === 0) {
getBookmarks();
}
}, [getBookmarks]);
Expand Down

0 comments on commit 5fde088

Please sign in to comment.