From b902713847275ab00e1cc61b014f9b029e1599c0 Mon Sep 17 00:00:00 2001 From: Kurt Hutten Date: Mon, 16 Aug 2021 20:33:31 +1000 Subject: [PATCH] remove ".public_id" since we're not uploading directly to cloudinary --- app/web/src/components/CaptureButton/CaptureButton.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/web/src/components/CaptureButton/CaptureButton.tsx b/app/web/src/components/CaptureButton/CaptureButton.tsx index f61ed4d..4dd3346 100644 --- a/app/web/src/components/CaptureButton/CaptureButton.tsx +++ b/app/web/src/components/CaptureButton/CaptureButton.tsx @@ -92,7 +92,7 @@ const CaptureButton = ({ // if there isn't a screenshot saved yet, just go ahead and save right away if (shouldUpdateImage) { - config.cloudinaryImgURL = (await uploadAndUpdateImage()).public_id + config.cloudinaryImgURL = await uploadAndUpdateImage() config.updated = true setCaptureState(config) } @@ -155,7 +155,7 @@ const CaptureButton = ({ const cloudinaryImg = await captureState.callback() setCaptureState({ ...captureState, - currImage: cloudinaryImg.public_id, + currImage: cloudinaryImg, updated: true, }) }}