Optional chaining
This commit is contained in:
parent
3bfe0b2b43
commit
6ab6932fc5
1 changed files with 1 additions and 1 deletions
|
|
@ -423,7 +423,7 @@ export default {
|
|||
const wasPaymentCancelled = error?.name === "CANCEL";
|
||||
|
||||
if (!wasPaymentCancelled) {
|
||||
const stringToLog = `ADYEN ERROR. Name = ${error.name}. Details = ${error.message}.`;
|
||||
const stringToLog = `ADYEN ERROR. Name = ${error?.name}. Details = ${error?.message}.`;
|
||||
|
||||
await global.$logger.logError(stringToLog);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue