remove ".public_id" since we're not uploading directly to cloudinary
This commit is contained in:
@@ -92,7 +92,7 @@ const CaptureButton = ({
|
|||||||
|
|
||||||
// if there isn't a screenshot saved yet, just go ahead and save right away
|
// if there isn't a screenshot saved yet, just go ahead and save right away
|
||||||
if (shouldUpdateImage) {
|
if (shouldUpdateImage) {
|
||||||
config.cloudinaryImgURL = (await uploadAndUpdateImage()).public_id
|
config.cloudinaryImgURL = await uploadAndUpdateImage()
|
||||||
config.updated = true
|
config.updated = true
|
||||||
setCaptureState(config)
|
setCaptureState(config)
|
||||||
}
|
}
|
||||||
@@ -155,7 +155,7 @@ const CaptureButton = ({
|
|||||||
const cloudinaryImg = await captureState.callback()
|
const cloudinaryImg = await captureState.callback()
|
||||||
setCaptureState({
|
setCaptureState({
|
||||||
...captureState,
|
...captureState,
|
||||||
currImage: cloudinaryImg.public_id,
|
currImage: cloudinaryImg,
|
||||||
updated: true,
|
updated: true,
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user