Merge pull request #1519 from Safelite/feature/skiener/CSR-1452

CSR-1452 | Tech review changes
This commit is contained in:
scottkiener 2023-11-13 16:21:07 -05:00 committed by GitHub
commit 8f9cee7070
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 7 deletions

View file

@ -32,7 +32,6 @@ export default {
name: "funnel-header",
data() {
return {
alertIdCounter: 0,
globalAlertMessages: [],
};
},
@ -47,8 +46,7 @@ export default {
methods: {
pushGlobalAlert(alertToPush, isAutoDismissing) {
alertToPush.displayAlert = true;
alertToPush.id = this.alertIdCounter;
this.alertIdCounter++;
alertToPush.id = crypto.randomUUID();
if (isAutoDismissing) {
setTimeout(() => {
alertToPush.displayAlert = false;

View file

@ -546,7 +546,6 @@ export const mutations = {
state.order.customer.phoneNumber = sessionInformation.order.customer.phoneNumber;
state.order.customer.isSmsOptIn = sessionInformation.order.customer.isSmsOptIn;
state.order.existingPromoCode = sessionInformation.order.existingPromoCode;
state.applicationUser.experiments = sessionInformation.applicationUser.experiments;
state.applicationUser.crmCustomerId = sessionInformation.applicationUser.crmCustomerId;
state.applicationUser.pageData = sessionInformation.applicationUser.pageData;
@ -1718,7 +1717,6 @@ export const actions = {
jobMaxMinutes: order.schedule?.jobMaxMinutes,
jobMinMinutes: order.schedule?.jobMinMinutes,
},
existingPromoCode: null,
referralCorrelationId: order.referralCorrelationId,
referralDate: order.referralDate,
referralNumber: order.referralNumber?.toString(),
@ -2792,8 +2790,8 @@ function convertGlassPieceToBackEndCompatibleFormat(glassPieces) {
function renameGlassToReplaceAttributes(glassToReplace) {
let newGlassToReplace = [];
if (glassToReplace) {
glassToReplace.forEach((item) => {
newGlassToReplace.push({ location: item.glassLocation, name: item.glassName });
newGlassToReplace = glassToReplace.map((item) => {
return { location: item.glassLocation, name: item.glassName };
});
}
return newGlassToReplace;