Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Match the variable name

Manav Rathi39bc68390f4b
diff --git a/web/apps/photos/src/components/FixCreationTime.tsx b/web/apps/photos/src/components/FixCreationTime.tsx
index 264ec5179a..6814cdf0e4 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<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();
};