Skip to content

Commit b1573b5

Browse files
committed
fix: tests for audio controller
1 parent 079e1c3 commit b1573b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

package/src/components/ImageGallery/components/ImageGalleryFooter.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ export const ImageGalleryFooterWithContext = <
134134
const share = async () => {
135135
setShareMenuOpen(true);
136136
try {
137+
if (!shareImage || !deleteFile) {
138+
return;
139+
}
137140
const extension = photo.mime_type?.split('/')[1] || 'jpg';
138141
const localFile = await saveFile({
139142
fileName: `${photo.user?.id || 'ChatPhoto'}-${

0 commit comments

Comments
 (0)