diff --git a/client/src/components/update-alert/update-alert.component.jsx b/client/src/components/update-alert/update-alert.component.jsx
index 75cd48a62..32f80ea79 100644
--- a/client/src/components/update-alert/update-alert.component.jsx
+++ b/client/src/components/update-alert/update-alert.component.jsx
@@ -21,6 +21,7 @@ const mapDispatchToProps = (dispatch) => ({
export function UpdateAlert({ updateAvailable }) {
const { t } = useTranslation();
const [timerStarted, setTimerStarted] = useState(false);
+ const [loading, setLoading] = useState(false);
const [
timeLeft,
{
@@ -50,10 +51,11 @@ export function UpdateAlert({ updateAvailable }) {
});
const ReloadNewVersion = useCallback(() => {
+ setLoading(true);
updateServiceWorker(true);
setTimeout(() => {
window.location.reload(true);
- }, 2000);
+ }, 5000);
}, [updateServiceWorker]);
useEffect(() => {
@@ -115,7 +117,7 @@ export function UpdateAlert({ updateAvailable }) {
-