CASH-2114: Null check
This commit is contained in:
parent
72f3a686b3
commit
3ee017dd8a
2 changed files with 6 additions and 5 deletions
|
|
@ -446,9 +446,10 @@ export default {
|
||||||
? vm.lineItems.glassParts
|
? vm.lineItems.glassParts
|
||||||
: vm.alternateGlassPartsForOem;
|
: vm.alternateGlassPartsForOem;
|
||||||
if (oemGlassPart) {
|
if (oemGlassPart) {
|
||||||
price = oemGlassPart.find(
|
price =
|
||||||
(altPart) => altPart.partType === partTypeStrings.WINDSHIELD
|
oemGlassPart.find(
|
||||||
)?.sellingPrice;
|
(altPart) => altPart.partType === partTypeStrings.WINDSHIELD
|
||||||
|
)?.sellingPrice || 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return price;
|
return price;
|
||||||
|
|
|
||||||
|
|
@ -123,8 +123,8 @@ $body-color: $gray-600;
|
||||||
|
|
||||||
//Fonts
|
//Fonts
|
||||||
$font-family-sans-serif: UrbanistRegular, Arial, Helvetica, sans-serif;
|
$font-family-sans-serif: UrbanistRegular, Arial, Helvetica, sans-serif;
|
||||||
$font-family-monospace: UrbanistRegular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
|
$font-family-monospace:
|
||||||
monospace;
|
UrbanistRegular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||||
// stylelint-enable value-keyword-case
|
// stylelint-enable value-keyword-case
|
||||||
$font-family-base: $font-family-sans-serif;
|
$font-family-base: $font-family-sans-serif;
|
||||||
$font-family-code: $font-family-monospace;
|
$font-family-code: $font-family-monospace;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue