From a1bdbcfcab0503cdaf521182d5abb8620cf0e331 Mon Sep 17 00:00:00 2001 From: Tristan Timblin Date: Fri, 29 Sep 2023 16:17:10 -0700 Subject: [PATCH] CEC-4950: ignore cleanup_succeeded overwrite (#456) --- src/components/Contexts/CarUpdatesContext.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/Contexts/CarUpdatesContext.jsx b/src/components/Contexts/CarUpdatesContext.jsx index 3b11bc4..f07427b 100644 --- a/src/components/Contexts/CarUpdatesContext.jsx +++ b/src/components/Contexts/CarUpdatesContext.jsx @@ -182,6 +182,11 @@ export const CarUpdatesProvider = ({ children }) => { } } delete item.progress; + + if (status.msg === "cleanup_succeeded") { + return; + } + item.status = status.msg; };