Null coalesce 2
This commit is contained in:
parent
56521c2744
commit
1261cb1c00
1 changed files with 2 additions and 2 deletions
|
|
@ -26,11 +26,11 @@ export function getVapsLineItems(availableLineItems, vapTypes) {
|
|||
}
|
||||
|
||||
export function containsGlassPieceWithLocation(locationToFind, glassPiecesToSearch) {
|
||||
const glassLocationMatches = glassPiecesToSearch.filter(
|
||||
const glassLocationMatches = glassPiecesToSearch?.filter(
|
||||
(glassPiece) => glassPiece.glassLocation.toUpperCase() === locationToFind.toUpperCase()
|
||||
);
|
||||
|
||||
return !!glassLocationMatches.length;
|
||||
return !!glassLocationMatches?.length;
|
||||
}
|
||||
|
||||
export function getAvailablePackages(glassToReplace, availableLineItems, isRepair) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue