Skip to content

Commit

Permalink
Merge pull request #1447 from digitalgreenorg/fix/participant-layout
Browse files Browse the repository at this point in the history
fix(FARMSTACK-34): add truthy operator
  • Loading branch information
sohit-dg authored Oct 24, 2024
2 parents 039da12 + 220e85e commit b87acd9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/features/default/src/Layout/Participant.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ function Participant(props) {
{globalConfig?.navBar === "DEFAULT" ? (
<DefaultNavbar loginType={"participant"} />
) : null}
{(globalConfig?.navBar === "EADP" || globalConfig?.navBar === "ETH_MOA") && (
{(globalConfig?.navBar === "EADP" ||
globalConfig?.navBar === "ETH_MOA") && (
<EadpNavbar loginType={"participant"} />
)}
{globalConfig?.navBar === "VISTAAR" && (
Expand Down Expand Up @@ -406,8 +407,9 @@ function Participant(props) {
{globalConfig?.footer === "DEFAULT" && (
<DefaultFooter loginType={"participant"} />
)}
{(globalConfig?.footer === "EADP" || globalConfig?.footer === "ETH_MOA") &&
!footerMatch(<EadpFooter loginType={"participant"} />)}
{(globalConfig?.footer === "EADP" ||
globalConfig?.footer === "ETH_MOA") &&
!footerMatch && <EadpFooter loginType={"participant"} />}
{globalConfig?.footer === "KADP" && (
<KadpFooter loginType={"participant"} />
)}
Expand Down

0 comments on commit b87acd9

Please sign in to comment.