From eb0fe57a2682d2f7013e714e7adba4a22b622ff7 Mon Sep 17 00:00:00 2001 From: 0hee0 Date: Sun, 14 Aug 2022 21:13:17 +0900 Subject: [PATCH] [#48] fix: add type checking --- react-native/components/SearchedNotice.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-native/components/SearchedNotice.tsx b/react-native/components/SearchedNotice.tsx index 4df418e..db761bc 100644 --- a/react-native/components/SearchedNotice.tsx +++ b/react-native/components/SearchedNotice.tsx @@ -48,7 +48,7 @@ export default function SearchedNotice(props: Notices) { return ( - Saved on {props?.date.replaceAll("-", ". ")} + Saved on {typeof(props?.date)===typeof("string") ? props?.date?.replaceAll("-", ". ") : props?.date} {props?.saved?.map((child, index) =>