Skip to content

Commit

Permalink
add nullish coalescing operator to error page AA check (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
will0684 authored May 23, 2024
1 parent 5f49403 commit c8c0b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ export const getStaticProps = async ({ locale }) => {
return {
props: {
locale: locale,
adobeAnalyticsUrl: process.env.ADOBE_ANALYTICS_URL,
adobeAnalyticsUrl: process.env.ADOBE_ANALYTICS_URL ?? null,
...(await serverSideTranslations("en", ["common"])),
...(await serverSideTranslations("fr", ["common"])),
pageData: data.sclabsErrorpageV1ByPath,
Expand Down

0 comments on commit c8c0b57

Please sign in to comment.