Skip to content

Commit

Permalink
chore(rxPage): prevent null
Browse files Browse the repository at this point in the history
  • Loading branch information
selankon committed Feb 21, 2024
1 parent 3cca101 commit bb30af8
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions plugins/lime-plugin-rx/src/sections/alignment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,17 @@ export const AlignmentCard = ({ status }: { status: StatusResponse }) => {
signal={+status.most_active.signal}
/>
<div className={"text-3xl"}>
{status.most_active.chains.map((chain, i) => (
<span key={i}>
<SignalColor
className={"font-bold"}
signal={chain}
/>
{i !== status.most_active.chains.length - 1 &&
" / "}
</span>
))}
{status.most_active?.chains &&
status.most_active.chains.map((chain, i) => (
<span key={i}>
<SignalColor
className={"font-bold"}
signal={chain}
/>
{i !== status.most_active.chains.length - 1 &&
" / "}
</span>
))}
</div>
</div>
<div className={"flex-1 flex flex-col text-xl "}>
Expand Down

0 comments on commit bb30af8

Please sign in to comment.