Handle camera cancellation (#11322)

This commit is contained in:
Samuel Newman
2026-08-03 16:25:42 +03:00
committed by GitHub
parent d58be1adea
commit c2ceb8057f
5 changed files with 25 additions and 19 deletions
@@ -32,6 +32,9 @@ export function OpenCameraBtn({disabled, onAdd}: OpenCameraBtnProps) {
const img = await openCamera({
aspect: [1, 1],
})
if (!img) {
return
}
// If we don't have permissions it's fine, we just wont save it. The post itself will still have access to
// the image even without these permissions