diff --git a/src/components/react/ChessStudy.tsx b/src/components/react/ChessStudy.tsx index d110182..db1b136 100644 --- a/src/components/react/ChessStudy.tsx +++ b/src/components/react/ChessStudy.tsx @@ -55,10 +55,8 @@ export const ChessStudy = ({ dataAdapter, }: AppProps) => { // Parse Obsidian / Code Block Settings - const { boardColor, boardOrientation, viewComments, chessStudyId } = parseUserConfig( - pluginSettings, - source - ); + const { boardColor, boardOrientation, viewComments, chessStudyId } = + parseUserConfig(pluginSettings, source); // Setup Chessground API const [chessView, setChessView] = useState(null); @@ -276,17 +274,16 @@ export const ChessStudy = ({ /> - { viewComments && -
-

{ viewComments }

- - dispatch({ type: 'SYNC_COMMENT', comment: comment }) - } - /> -
- } + {viewComments && ( +
+ + dispatch({ type: 'SYNC_COMMENT', comment: comment }) + } + /> +
+ )} ); };