Skip to content

Commit

Permalink
condition simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
Lvyshnevska committed Dec 16, 2023
1 parent 9a7c3ab commit 5c6273a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ function CompanyDescription ({ data }) {
return (
<div className={classes['company-description-block']}>
<Company data={data} />
{data.is_startup ? <Startup data={data} /> : null}
{data.is_registered ? <ProductsServices data={data} /> : null}
{data.is_registered ? <Logistics /> : null}
{data.is_registered ? <Cooperation /> : null}
{data.is_startup && <Startup data={data} />}
{data.is_registered && <ProductsServices data={data} />}
{data.is_registered && <Logistics />}
{data.is_registered && <Cooperation />}
</div>
);
}
Expand Down

0 comments on commit 5c6273a

Please sign in to comment.