Skip to content

Commit

Permalink
Fix show more btn condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytrotkk committed Jul 11, 2024
1 parent 7ff15d2 commit 20b5853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ChainApps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default function ChainApps(props: {
<div className={cls(styles.sk__chainApps, cmn.mri10, cmn.flex, cmn.flexcv)}>
<div className={cls(cmn.mtop10, cmn.mbott10)}>
{show ? appButtons : appButtons.length === 4 ? appButtons : appButtons.slice(0, 3)}
{appButtons.length > 3 && <Button
{appButtons.length > 4 && <Button
onClick={() => {
setShow(!show)
}}
Expand Down

0 comments on commit 20b5853

Please sign in to comment.