Skip to content

Commit 0a46ca1

Browse files
committed
fix: fileuploadpreview shows nothing if no size found
1 parent 072298f commit 0a46ca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/src/components/MessageInput/FileUploadPreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const UnsupportedFileTypeOrFileSizeIndicator = ({
105105
</View>
106106
) : (
107107
<Text style={[styles.fileSizeText, { color: grey }, fileSizeText]}>
108-
{getFileSizeDisplayText(item.file.size)}
108+
{item.file.duration ? item.file.duration : getFileSizeDisplayText(item.file.size)}
109109
</Text>
110110
);
111111
};

0 commit comments

Comments
 (0)