From 73ec8b8a701e5770bc806f8330801f9cf42aabf9 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Fri, 13 Sep 2024 10:51:04 -0700 Subject: [PATCH] IO-2733 Resolve notification showing incorrect time. --- .circleci/config.yml | 6 +++--- .../src/components/update-alert/update-alert.component.jsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 215cdc075..23341d15d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -315,9 +315,9 @@ jobs: command: | curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | bash hasura migrate apply --endpoint https://db.test.bodyshop.app/ --admin-secret << parameters.secret >> - sleep 5 + sleep 15 hasura metadata apply --endpoint https://db.test.bodyshop.app/ --admin-secret << parameters.secret >> - sleep 10 + sleep 30 hasura metadata reload --endpoint https://db.test.bodyshop.app/ --admin-secret << parameters.secret >> - jira/notify: environment: Test (ImEX) - Hasura @@ -427,7 +427,7 @@ workflows: secret: ${HASURA_PROD_SECRET} filters: branches: - only: master + only: master-AIO - rome-api-deploy: filters: branches: diff --git a/client/src/components/update-alert/update-alert.component.jsx b/client/src/components/update-alert/update-alert.component.jsx index dee86d7ad..75cd48a62 100644 --- a/client/src/components/update-alert/update-alert.component.jsx +++ b/client/src/components/update-alert/update-alert.component.jsx @@ -64,7 +64,7 @@ export function UpdateAlert({ updateAvailable }) { }, [start, needRefresh, offlineReady]); useEffect(() => { - if (needRefresh && timeLeft < 60000) { + if (needRefresh && timerStarted && timeLeft < 60000) { notification.open({ type: "warning", closable: false,