From 7353a733be6f6827dfefe3bf4e432385ab3ab800 Mon Sep 17 00:00:00 2001 From: Dan Adajian Date: Tue, 2 May 2023 14:16:32 -0500 Subject: [PATCH] fix: display loading dialog state until base image upload is finished --- frontend/components/update-images-button.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/components/update-images-button.tsx b/frontend/components/update-images-button.tsx index 1173f6cd..4cb0d5ac 100644 --- a/frontend/components/update-images-button.tsx +++ b/frontend/components/update-images-button.tsx @@ -82,12 +82,12 @@ export const UpdateImagesButton = () => { const dialogErrorContent = error && ; const getDialogContent = (state?: UpdateBaseImagesText) => { switch (state) { - case UpdateBaseImagesText.UPDATING: - return dialogLoadingContent; + case UpdateBaseImagesText.NOT_UPDATED: + return dialogContent; case UpdateBaseImagesText.ERROR: return dialogErrorContent; default: - return dialogContent; + return dialogLoadingContent; } };