diff --git a/web/apps/photos/src/components/FixCreationTime.tsx b/web/apps/photos/src/components/FixCreationTime.tsx index 264ec5179..6814cdf0e 100644 --- a/web/apps/photos/src/components/FixCreationTime.tsx +++ b/web/apps/photos/src/components/FixCreationTime.tsx @@ -54,17 +54,13 @@ const FixCreationTime: React.FC = (props) => { const startFix = async (option: FIX_OPTIONS, customTime: Date) => { setStep("running"); - const completedWithoutError = await updateCreationTimeWithExif( + const failed = await updateCreationTimeWithExif( props.attributes.files, option, customTime, setProgressTracker, ); - if (!completedWithoutError) { - setStep("completed"); - } else { - setStep("error"); - } + setStep(failed ? "error" : "completed"); await galleryContext.syncWithRemote(); };