diff --git a/src/ui/features/goalmanager/GoalIcon.tsx b/src/ui/features/goalmanager/GoalIcon.tsx index b5a0d75..1716133 100644 --- a/src/ui/features/goalmanager/GoalIcon.tsx +++ b/src/ui/features/goalmanager/GoalIcon.tsx @@ -3,12 +3,12 @@ import React from 'react' import styled from 'styled-components' import { TransparentButton } from '../../components/TransparentButton' -type Props = { icon: string | null; onClick: (e: React.MouseEvent) => void } +type Props = { icon?: string | null; onClick: (e: React.MouseEvent) => void } export default function GoalIcon(props: Props) { return ( - {props.icon} + {props.icon ?? '🙂'} ) }