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({
|
||||
method: endpoints.ValidatePromo.method,
|
||||
endpoint: endpoints.ValidatePromo.url,
|
||||
payload: requestObject,
|
||||
logApiCall: true,
|
||||
pageNameToLog: pageNameToLog,
|
||||
}).catch((error) => {
|
||||
// Validate promo will return 4xx errors when an invalid promo
|
||||
return error;
|
||||
});
|
||||
const validateResponse = await globalMethods
|
||||
.callHttpClient({
|
||||
method: endpoints.ValidatePromo.method,
|
||||
endpoint: endpoints.ValidatePromo.url,
|
||||
payload: requestObject,
|
||||
logApiCall: true,
|
||||
pageNameToLog: pageNameToLog,
|
||||
})
|
||||
.catch((error) => {
|
||||
// Validate promo will return 4xx errors when an invalid promo
|
||||
return error;
|
||||
});
|
||||
|
||||
if (validateResponse?.data?.serverData) {
|
||||
context.commit(
|
||||
|
|
|
|||
Loading…
Reference in a new issue