From 9d4d9890682cbd01576457d51db9d12755c99bf4 Mon Sep 17 00:00:00 2001 From: plebbitor Date: Sat, 15 Apr 2023 18:12:46 +0200 Subject: [PATCH] disabled mock content --- .env | 3 --- src/components/views/Board.jsx | 10 +++++----- src/components/views/Thread.jsx | 12 ++++++------ src/utils/getCommentMediaInfo.js | 12 ++++++------ src/utils/renderComments.js | 6 +++--- src/utils/renderThreadComments.js | 2 +- 6 files changed, 21 insertions(+), 24 deletions(-) delete mode 100644 .env diff --git a/.env b/.env deleted file mode 100644 index b39d8ffd..00000000 --- a/.env +++ /dev/null @@ -1,3 +0,0 @@ -REACT_APP_PLEBBIT_REACT_HOOKS_MOCK_CONTENT=1 -REACT_APP_PLEBBIT_REACT_HOOKS_MOCK_CONTENT_LOADING_TIME=1000 -REACT_APP_PLEBBIT_REACT_HOOKS_MOCK_CONTENT_DOUBLE_MEDIA=1 \ No newline at end of file diff --git a/src/components/views/Board.jsx b/src/components/views/Board.jsx index 5344826c..04972614 100644 --- a/src/components/views/Board.jsx +++ b/src/components/views/Board.jsx @@ -375,7 +375,7 @@ const Board = () => { hasMore={hasMore} > {selectedFeed.map((thread) => { - const { replies: { pages: { topAll: { comments } } } } = thread; + const { replies: { pages: { topAll: { comments } = {} } = {} } = {} } = thread; const { renderedComments, omittedCount } = renderComments(comments); const commentMediaInfo = getCommentMediaInfo(thread); const fallbackImgUrl = "/assets/filedeleted-res.gif"; @@ -471,7 +471,7 @@ const Board = () => {