Skip to content

Commit

Permalink
fix(retention): fix displaying of conditional elements in modal (#24285)
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsobrmlr authored Aug 9, 2024
1 parent 037509e commit 0d07fe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/scenes/retention/RetentionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function RetentionModal(): JSX.Element | null {
footer={
<div className="flex justify-between gap-2 w-full">
<div className="flex gap-2">
{people.result?.length && !exploreUrl && (
{!!people.result?.length && !exploreUrl && (
<LemonButton
type="secondary"
onClick={() =>
Expand All @@ -68,7 +68,7 @@ export function RetentionModal(): JSX.Element | null {
Download CSV
</LemonButton>
)}
{people.result?.length && !!dataTableNodeQuery && (
{!!people.result?.length && !!dataTableNodeQuery && (
<LemonButton
type="secondary"
onClick={() => {
Expand Down

0 comments on commit 0d07fe8

Please sign in to comment.