Fix crash when chapter release date is empty string

This commit is contained in:
Rajarshee Chatterjee
2021-10-28 17:53:52 +05:30
parent 5e0d19a9c9
commit bb68b2f407
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -202,7 +202,7 @@ const Novel = ({route, navigation}) => {
}}
numberOfLines={1}
>
{chapter.releaseDate && '• '}
{chapter.releaseDate ? '• ' : null}
{'Progress ' + position[chapter.chapterId].percentage + '%'}
</Text>
);
+2 -2
View File
@@ -66,7 +66,7 @@ const ChapterItem = ({
marginTop: 5,
}}
>
{releaseDate && releaseDate !== '' && (
{releaseDate ? (
<Text
style={{
color: read
@@ -80,7 +80,7 @@ const ChapterItem = ({
>
{releaseDate}
</Text>
)}
) : null}
{showProgressPercentage(chapter)}
</View>
</View>