mobile: fix shared screenshot shows undefined/nan

This commit is contained in:
Ammar Ahmed
2025-02-14 12:52:20 +05:00
parent 2ab321869e
commit a3f7c490ec

View File

@@ -604,7 +604,8 @@ const ShareView = () => {
paddingRight: 8
}}
>
{item.name} ({formatBytes(item.size)})
{item.name || item.value.split("/").pop()}
{item.size ? `(${formatBytes(item.size)})` : ""}
</Paragraph>
</TouchableOpacity>
)