Handle camera cancellation (#11322)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user