From 7e14b52bf944270c843c22a18ee6a021703797ed Mon Sep 17 00:00:00 2001
From: Fedor Katurov <gotham48@gmail.com>
Date: Wed, 19 Jan 2022 09:48:16 +0700
Subject: [PATCH] (nextjs) fixed fonts

---
 next.config.js                             | 6 +++++-
 src/containers/node/NodeComments/index.tsx | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/next.config.js b/next.config.js
index ee56eaaa..d2427d45 100644
--- a/next.config.js
+++ b/next.config.js
@@ -1,7 +1,8 @@
+/** used to transpile UMD and CJS modules */
 const withTM = require('next-transpile-modules')(['ramda']);
 
 module.exports = withTM({
-  /* Your Next.js config */
+  /** rewrite old-style node paths */
   async rewrites() {
     return [
       {
@@ -10,4 +11,7 @@ module.exports = withTM({
       },
     ];
   },
+
+  /** don't try to optimize fonts */
+  optimizeFonts: false,
 });
diff --git a/src/containers/node/NodeComments/index.tsx b/src/containers/node/NodeComments/index.tsx
index 3877b58d..cf550136 100644
--- a/src/containers/node/NodeComments/index.tsx
+++ b/src/containers/node/NodeComments/index.tsx
@@ -27,7 +27,11 @@ const NodeComments: FC<IProps> = memo(({ order }) => {
     onSaveComment,
   } = useCommentContext();
 
-  const groupped: ICommentGroup[] = useGrouppedComments(comments, order, lastSeenCurrent);
+  const groupped: ICommentGroup[] = useGrouppedComments(
+    comments,
+    order,
+    lastSeenCurrent ?? undefined
+  );
 
   const more = useMemo(
     () =>