AW-43-palmistry-loader-after-photo

This commit is contained in:
Денис Катаев 2024-06-06 22:00:59 +00:00 committed by Daniil Chemerkin
parent 7946e9ffb2
commit 865283edca

View File

@ -78,11 +78,12 @@ export default function StepUpload(props: Props) {
};
const onTakePhoto = async (photo: string) => {
setUploadMenuModalIsOpen(false);
setPalmCameraModalIsOpen(false);
setIsUpladProcessing(true);
const file = DataURIToBlob(photo);
await getLines(file);
setPalmPhoto(photo as string);
setUploadMenuModalIsOpen(false);
setPalmCameraModalIsOpen(false);
};
useEffect(() => {