Skip to content

Commit

Permalink
Fix backward archived check (#1245)
Browse files Browse the repository at this point in the history
  • Loading branch information
goodoldneon committed Mar 21, 2024
1 parent 0b602a0 commit a712533
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function EventLayout({ children, params }: EventLayoutProps) {
title={decodeURIComponent(params.eventName)}
links={navLinks}
action={
env.isArchived && <SendEventButton eventName={decodeURIComponent(params.eventName)} />
!env.isArchived && <SendEventButton eventName={decodeURIComponent(params.eventName)} />
}
/>
{children}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function EventTypesPage() {
<Header
title="Events"
icon={<EventIcon className="h-4 w-4 text-white" />}
action={env.isArchived && <SendEventButton />}
action={!env.isArchived && <SendEventButton />}
/>

<main className="min-h-0 flex-1 overflow-y-auto bg-slate-100">
Expand Down

0 comments on commit a712533

Please sign in to comment.