Merge pull request #3182 from Safelite/feature/CASH-2563

Feature/CASH 2563
This commit is contained in:
Chris 2026-05-19 13:10:14 -04:00 committed by GitHub
commit 1fb68496c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1949,21 +1949,21 @@ export const actions = {
pageNameToLog: pageNameToLog, pageNameToLog: pageNameToLog,
}) })
.catch((error) => { .catch((error) => {
if (error.status == 500) { // if (error.status == 500) {
return { PartsNotFound: true }; // return { PartsNotFound: true };
} // }
}); });
// Triggers bailout // Triggers bailout
if (response.PartsNotFound) { // if (response.PartsNotFound) {
return response; // return response;
} // }
// Check if we only have MISC parts to trigger bailout // Check if we only have MISC parts to trigger bailout
const miscPartsResponse = checkIfMiscParts(response.data.partsOrQuestions); // const miscPartsResponse = checkIfMiscParts(response.data.partsOrQuestions);
if (miscPartsResponse.PartsNotFound) { // if (miscPartsResponse.PartsNotFound) {
return miscPartsResponse; // return miscPartsResponse;
} // }
// Flatten location and name properties // Flatten location and name properties
response.data.partsOrQuestions = convertGlassPieceNamingFromApi( response.data.partsOrQuestions = convertGlassPieceNamingFromApi(