From 47fd0b2dfde8874374d2956da8b436cbe0d4d744 Mon Sep 17 00:00:00 2001 From: alexm Date: Thu, 25 Jan 2024 08:46:51 +0100 Subject: [PATCH] refs #6745 fix(claimDescriptor= claimRatio label. fix(TicketSummary): state can be null --- src/pages/Claim/Card/ClaimDescriptor.vue | 8 +++++++- src/pages/Ticket/Card/TicketSummary.vue | 6 +++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/pages/Claim/Card/ClaimDescriptor.vue b/src/pages/Claim/Card/ClaimDescriptor.vue index afd22c340..deaed94f8 100644 --- a/src/pages/Claim/Card/ClaimDescriptor.vue +++ b/src/pages/Claim/Card/ClaimDescriptor.vue @@ -145,7 +145,7 @@ const setData = (entity) => { /> @@ -176,3 +176,9 @@ const setData = (entity) => { margin-top: 0; } + + en: + claimRate: Claming rate + es: + claimRate: Ratio de reclamaciĆ³n + diff --git a/src/pages/Ticket/Card/TicketSummary.vue b/src/pages/Ticket/Card/TicketSummary.vue index 65523bb82..fe7dcee9a 100644 --- a/src/pages/Ticket/Card/TicketSummary.vue +++ b/src/pages/Ticket/Card/TicketSummary.vue @@ -58,7 +58,7 @@ function formattedAddress() { function isEditable() { try { - return !ticket.value.ticketState.state.alertLevel; + return !ticket.value.ticketState?.state?.alertLevel; } catch (e) { console.error(e); } @@ -153,8 +153,8 @@ async function changeState(value) {