Skip to content

Commit

Permalink
fix: cannot log details because googleAdsError is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
htdangkhoa committed Oct 9, 2024
1 parent 06b5cf1 commit 50cad63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LoggingInterceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export class LoggingInterceptor {
const [googleAdsError] = errors ?? [];

const [errorType, errorCode] =
Object.entries<any>(googleAdsError.error_code ?? {}).find(
Object.entries<any>(googleAdsError?.error_code ?? {}).find(
([key, value]) => ![undefined, null].includes(value),
) ?? [];

Expand Down

0 comments on commit 50cad63

Please sign in to comment.