diff --git a/package-lock.json b/package-lock.json index 63af1164ef0..5c703af8fe1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20862,4 +20862,4 @@ } } } -} \ No newline at end of file +} diff --git a/src/components/Users/UserProfile.tsx b/src/components/Users/UserProfile.tsx index 15cedafab2e..7b0df12cac0 100644 --- a/src/components/Users/UserProfile.tsx +++ b/src/components/Users/UserProfile.tsx @@ -36,7 +36,6 @@ import request from "@/Utils/request/request"; import uploadFile from "@/Utils/request/uploadFile"; import useQuery from "@/Utils/request/useQuery"; import { - classNames, dateQueryString, formatDate, formatDisplayName, @@ -1006,31 +1005,34 @@ export default function UserProfile() {

- {updateStatus.isUpdateAvailable && ( - - +
+ {updateStatus.isChecking ? ( + // While checking for updates +
- - {t("update_available")} + + {t("checking_for_update")}
- - )} -
- {!updateStatus.isUpdateAvailable && ( - - {" "} + ) : updateStatus.isUpdateAvailable ? ( + // When an update is available + + +
+ + {t("update_available")} +
+
+
+ ) : ( + // Default state to check for updates +
- - {updateStatus.isChecking - ? t("checking_for_update") - : t("check_for_update")} + + {t("check_for_update")}
)}