Skip to content

Commit

Permalink
Hide tables in liqudity tab before epoch has been closed (#1581)
Browse files Browse the repository at this point in the history
  • Loading branch information
sophialittlejohn authored Sep 14, 2023
1 parent c110a13 commit 85036ce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default function LiquidityTransactionsSection({
: []
}, [chartData, dataColors, tooltips, pool.currency.symbol])

return (
return chartData?.length ? (
<PageSection
title={title}
titleAddition={
Expand Down Expand Up @@ -133,5 +133,5 @@ export default function LiquidityTransactionsSection({
<StackedBarChart data={chartData} names={dataNames} colors={dataColors} currency={pool.currency.symbol} />
)}
</PageSection>
)
) : null
}

0 comments on commit 85036ce

Please sign in to comment.