Match the variable name
This commit is contained in:
parent
83dabfbdee
commit
39bc68390f
1 changed files with 2 additions and 6 deletions
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue