Merge branch 'develop' into feature/SSR-201
This commit is contained in:
commit
4e2de806f5
1 changed files with 1 additions and 6 deletions
|
|
@ -5,15 +5,10 @@ import { useMainStore } from '@/store';
|
|||
export function getDamageString() {
|
||||
const mainStore = useMainStore();
|
||||
|
||||
// If it's a repair it's always a windshield.
|
||||
const { isRepair } = mainStore.damage;
|
||||
if (isRepair) {
|
||||
return damageCustomLabels.WINDSHIELD;
|
||||
}
|
||||
|
||||
const damageLocations = mainStore.damage.glassToReplace;
|
||||
|
||||
if (!damageLocations || !Array.isArray(damageLocations)) {
|
||||
if (isRepair || !damageLocations || !Array.isArray(damageLocations)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue