Skip to content

Commit

Permalink
Fix default AOC not displaying when custom AOC is disabled (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffersonBledsoe committed Nov 29, 2023
1 parent 7bc672b commit 2626a3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/customizations/volto/components/theme/Footer/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function Footer() {
</div>
</div>
) : null}
{AocSlotDisplay && aocSlotData ? (
{AocSlotDisplay && aocSlotData?.enabled === true ? (
<div
className={cx('nsw-ds-footer__aoc', {
[aocTextColour]: !!aocTextColour,
Expand All @@ -182,7 +182,7 @@ function Footer() {
) : null}
<div className="nsw-footer__lower">
<div className="nsw-container">
{aocSlotData ||
{aocSlotData?.enabled === true ||
siteSettings?.show_acknowledgement_of_country === false ? null : (
<>
<p>{acknowledgementOfCountry}</p>
Expand Down

0 comments on commit 2626a3e

Please sign in to comment.