diff --git a/components/EntityRatings.tsx b/components/EntityRatings.tsx index 93d219a..a7eeb1f 100644 --- a/components/EntityRatings.tsx +++ b/components/EntityRatings.tsx @@ -1,5 +1,6 @@ import { FC } from 'react' import toString from 'lodash/toString' +import isEmpty from 'lodash/isEmpty' import groupBy from 'lodash/groupBy' import { Comment } from '@ant-design/compatible' import { Divider, Typography } from 'antd' @@ -93,6 +94,11 @@ const EntityRatings: FC = (props) => { { contextRatings.map((contextRating: Rating) => { + + if (isEmpty(contextRating.comments)) { + return null + } + const [rootComment, ...comments] = contextRating.comments return ( diff --git a/components/MapMarkerIcon.tsx b/components/MapMarkerIcon.tsx index 885c037..7edcbdf 100644 --- a/components/MapMarkerIcon.tsx +++ b/components/MapMarkerIcon.tsx @@ -2,6 +2,8 @@ import { FC } from 'react' import { FaFutbol } from '@react-icons/all-files/fa/FaFutbol' import { FaLock } from '@react-icons/all-files/fa/FaLock' +import { IoMdFootball } from '@react-icons/all-files/io/IoMdFootball' +import { IoIosFootball } from '@react-icons/all-files/io/IoIosFootball' import { IconBaseProps, IconType } from 'react-icons' @@ -20,6 +22,12 @@ const MapMarkerIcon: FC = (props) => { case 'FaLock': Icon = FaLock break + case 'IoMdFootball': + Icon = IoMdFootball + break + case 'IoIosFootball': + Icon = IoIosFootball + break default: break } diff --git a/consts/version.ts b/consts/version.ts index 503864c..a376f32 100644 --- a/consts/version.ts +++ b/consts/version.ts @@ -1,4 +1,4 @@ -const version = 'v1.2.9' +const version = 'v1.2.10' export default version