Skip to content

Commit 220e85e

Browse files
committed
fix(FARMSTACK-34): add truthy operator
1 parent 039da12 commit 220e85e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/features/default/src/Layout/Participant.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ function Participant(props) {
180180
{globalConfig?.navBar === "DEFAULT" ? (
181181
<DefaultNavbar loginType={"participant"} />
182182
) : null}
183-
{(globalConfig?.navBar === "EADP" || globalConfig?.navBar === "ETH_MOA") && (
183+
{(globalConfig?.navBar === "EADP" ||
184+
globalConfig?.navBar === "ETH_MOA") && (
184185
<EadpNavbar loginType={"participant"} />
185186
)}
186187
{globalConfig?.navBar === "VISTAAR" && (
@@ -406,8 +407,9 @@ function Participant(props) {
406407
{globalConfig?.footer === "DEFAULT" && (
407408
<DefaultFooter loginType={"participant"} />
408409
)}
409-
{(globalConfig?.footer === "EADP" || globalConfig?.footer === "ETH_MOA") &&
410-
!footerMatch(<EadpFooter loginType={"participant"} />)}
410+
{(globalConfig?.footer === "EADP" ||
411+
globalConfig?.footer === "ETH_MOA") &&
412+
!footerMatch && <EadpFooter loginType={"participant"} />}
411413
{globalConfig?.footer === "KADP" && (
412414
<KadpFooter loginType={"participant"} />
413415
)}

0 commit comments

Comments
 (0)