We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e2ad0d commit 0b2a990Copy full SHA for 0b2a990
src/pageComponents/gathering/opinion/ResultView.tsx
@@ -56,8 +56,12 @@ const VoteList = ({ votes }: VoteListProps) => {
56
};
57
58
const formatScheduledDate = (dateStr: string): string => {
59
- const date = parse(dateStr, "yyyy-MM-dd", new Date());
60
- return format(date, "M월 d일");
+ try {
+ const date = parse(dateStr, "yyyy-MM-dd", new Date());
61
+ return format(date, "M월 d일");
62
+ } catch {
63
+ return "";
64
+ }
65
66
67
export const ResultView = ({ recommendationResult }: ResultViewProps) => {
0 commit comments