fix starter pack sharing on ios

This commit is contained in:
Samuel Newman
2026-09-01 12:25:03 +03:00
parent 96e6baa47b
commit d7dfc444e6
2 changed files with 4 additions and 11 deletions
-8
View File
@@ -317,14 +317,6 @@
"count": 4 "count": 4
} }
}, },
"src/components/StarterPack/ShareDialog.tsx": {
"typescript/no-floating-promises": {
"count": 1
},
"typescript/require-await": {
"count": 1
}
},
"src/components/StarterPack/Wizard/WizardEditListDialog.tsx": { "src/components/StarterPack/Wizard/WizardEditListDialog.tsx": {
"typescript/no-explicit-any": { "typescript/no-explicit-any": {
"count": 1 "count": 1
+4 -3
View File
@@ -53,14 +53,15 @@ function ShareDialogInner({
const imageUrl = getStarterPackOgCard(starterPack) const imageUrl = getStarterPackOgCard(starterPack)
const onShareLink = async () => { const onShareLink = () => {
if (!link) return if (!link) return
shareUrl(link)
ax.metric('starterPack:share', { ax.metric('starterPack:share', {
starterPack: starterPack.uri, starterPack: starterPack.uri,
shareType: 'link', shareType: 'link',
}) })
control.close() control.close(() => {
void shareUrl(link)
})
} }
const saveImageToAlbum = useSaveImageToMediaLibrary() const saveImageToAlbum = useSaveImageToMediaLibrary()