Make duration fully optional

This commit is contained in:
Zhiyuan Zheng 2022-01-08 11:22:07 +01:00
parent e92a7907e6
commit 387a574b0d
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ const AttachmentAudio: React.FC<Props> = ({
</>
)}
</View>
{audio.meta.original.duration ? (
{audio.meta?.original?.duration ? (
<View
style={{
alignSelf: 'flex-end',