diff --git a/src/components/Contexts/CarUpdatesContext.jsx b/src/components/Contexts/CarUpdatesContext.jsx index 588d6b4..97c2802 100644 --- a/src/components/Contexts/CarUpdatesContext.jsx +++ b/src/components/Contexts/CarUpdatesContext.jsx @@ -98,7 +98,7 @@ export const CarUpdatesProvider = ({ children }) => { if (validateStatusMessage(status)) { if (status.msg === "downloading") { item.progress = getDownloadProgress(status); - item.status = `downloading ${item.ecu} ${item.progress}%`; + item.status = `${item.ecu || ""} downloading ${item.progress}%`.trim(); return; } else if (status.msg === "package_download_complete") { item.progress = 100; @@ -106,7 +106,7 @@ export const CarUpdatesProvider = ({ children }) => { return; } else if (status.msg === "installing") { item.progress = getInstallProgress(status); - item.status = `installing ${item.ecu} ${item.progress}%`; + item.status = `${item.ecu || ""} installing ${item.progress}%`.trim(); return; } else if (status.msg === "package_install_complete") { item.progress = 100;