Skip to content

Commit

Permalink
[#48] fix: add type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
hee-suh committed Aug 14, 2022
1 parent 92cb166 commit eb0fe57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react-native/components/SearchedNotice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function SearchedNotice(props: Notices) {
return (
<View style={styles.container}>
<View style={styles.headerContainer}>
<Text fontWeight={500} color="white">Saved on {props?.date.replaceAll("-", ". ")}</Text>
<Text fontWeight={500} color="white">Saved on {typeof(props?.date)===typeof("string") ? props?.date?.replaceAll("-", ". ") : props?.date}</Text>
</View>
<VStack space={3}>
{props?.saved?.map((child, index) =>
Expand Down

0 comments on commit eb0fe57

Please sign in to comment.