From a3f7c490ecaabc7091440d7ce5fa31a8ecd870e4 Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Fri, 14 Feb 2025 12:52:20 +0500 Subject: [PATCH] mobile: fix shared screenshot shows undefined/nan --- apps/mobile/share/share.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/mobile/share/share.js b/apps/mobile/share/share.js index b8b6f5d3b..a956b435c 100644 --- a/apps/mobile/share/share.js +++ b/apps/mobile/share/share.js @@ -604,7 +604,8 @@ const ShareView = () => { paddingRight: 8 }} > - {item.name} ({formatBytes(item.size)}) + {item.name || item.value.split("/").pop()} + {item.size ? `(${formatBytes(item.size)})` : ""} )