diff --git a/assets/js/components/Auth/auth.ts b/assets/js/components/Auth/auth.ts index 074f3968c..b23f64171 100644 --- a/assets/js/components/Auth/auth.ts +++ b/assets/js/components/Auth/auth.ts @@ -13,7 +13,7 @@ const auth = reactive({ }); export async function updateAuthStatus() { - if (store.state.offline || isSystemError(store.state.fatal)) { + if (store.state.offline || isSystemError(store.state.fatal ?? [])) { // system not ready, skip auth check return; } diff --git a/assets/js/components/Config/LoadpointModal.vue b/assets/js/components/Config/LoadpointModal.vue index 2ec5b6819..1b8201fa9 100644 --- a/assets/js/components/Config/LoadpointModal.vue +++ b/assets/js/components/Config/LoadpointModal.vue @@ -53,7 +53,7 @@ class="me-2 flex-grow-1" readonly required - :invalid="!charger" + :invalid="!charger || hasDeviceError('charger', values.charger)" @click.prevent="editCharger" />