Skip to content

Commit

Permalink
fix: [PROD-12798] fix out-of-synch issue when the backend returns a s…
Browse files Browse the repository at this point in the history
…tartime as null
  • Loading branch information
nborde-CSM committed Dec 12, 2023
1 parent 47a396d commit 0181a30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export const useScenarioDashboardCard = () => {
);

const isDashboardSync = useMemo(() => {
if (isDirty) return false;
if (!currentScenarioRunStartTime) return true;
if (isDirty) return false;
const lastUpdate = new Date(currentScenarioLastUpdate);
const startTime = new Date(currentScenarioRunStartTime);
lastUpdate.setSeconds(0);
Expand Down

0 comments on commit 0181a30

Please sign in to comment.