CSR-1452 | Formatting
This commit is contained in:
parent
c21d50c3ba
commit
551c6b9a60
1 changed files with 12 additions and 10 deletions
|
|
@ -2267,16 +2267,18 @@ export const actions = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const validateResponse = await globalMethods.callHttpClient({
|
const validateResponse = await globalMethods
|
||||||
method: endpoints.ValidatePromo.method,
|
.callHttpClient({
|
||||||
endpoint: endpoints.ValidatePromo.url,
|
method: endpoints.ValidatePromo.method,
|
||||||
payload: requestObject,
|
endpoint: endpoints.ValidatePromo.url,
|
||||||
logApiCall: true,
|
payload: requestObject,
|
||||||
pageNameToLog: pageNameToLog,
|
logApiCall: true,
|
||||||
}).catch((error) => {
|
pageNameToLog: pageNameToLog,
|
||||||
// Validate promo will return 4xx errors when an invalid promo
|
})
|
||||||
return error;
|
.catch((error) => {
|
||||||
});
|
// Validate promo will return 4xx errors when an invalid promo
|
||||||
|
return error;
|
||||||
|
});
|
||||||
|
|
||||||
if (validateResponse?.data?.serverData) {
|
if (validateResponse?.data?.serverData) {
|
||||||
context.commit(
|
context.commit(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue