Merge pull request #1519 from Safelite/feature/skiener/CSR-1452
CSR-1452 | Tech review changes
This commit is contained in:
commit
8f9cee7070
2 changed files with 3 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue