diff --git a/src/store/index.js b/src/store/index.js index c1968888d..fb86b61c3 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -528,6 +528,9 @@ export const getters = { }, eventBus: (state) => state.applicationUser.eventBus, damage: (state) => state.order.damage, + hasExactlyOneChip: (state) => { + return state.order.damage?.numberOfChips === 1; + }, hasAnyNonWindshieldGlassParts: (state) => { const nonWindshieldItems = state.order.damage.glassToReplace?.filter( (glassToReplace) => glassToReplace.glassLocation != "Windshield"