Skip to content

Commit

Permalink
feat(dashboard): split lines in the subnet replace penalty explanations
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa-tomic committed Apr 12, 2023
1 parent 9d38b50 commit 445b165
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const SubnetChangePage = ({ network }: { network: string }) => {
</Grid>
{change?.comment && <Grid item>
<Alert variant="filled" severity="warning">
{change?.comment}
{ change?.comment.split("\n").filter(l => l).map((line, index) => { if (index == 0) {return line} else { return <li>{line}</li> } }) }
</Alert>
</Grid>
}
Expand Down

0 comments on commit 445b165

Please sign in to comment.