Match the variable name

This commit is contained in:
Manav Rathi 2024-04-01 10:49:28 +05:30
parent 83dabfbdee
commit 39bc68390f
No known key found for this signature in database

View file

@ -54,17 +54,13 @@ const FixCreationTime: React.FC<FixCreationTimeProps> = (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();
};