Skip to content

Commit

Permalink
change var name to showResults instead of hideResults
Browse files Browse the repository at this point in the history
  • Loading branch information
nickoferrall committed Apr 23, 2024
1 parent e22cbbd commit 6df1450
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ type Props = {

const ActivityLibraryEmptyState = (props: Props) => {
const {categoryId, searchQuery} = props
const hideResultsNotFound = categoryId === 'custom' && searchQuery === ''
const showResultsNotFound = categoryId !== 'custom' || searchQuery !== ''

return (
<div className='mx-auto flex p-2 text-slate-700'>
<div className='ml-10'>
{!hideResultsNotFound && (
{showResultsNotFound && (
<>
<img className='w-32' src={halloweenRetrospectiveTemplate} />
<div className='mb-4 text-xl font-semibold'>No results found!</div>
Expand Down

0 comments on commit 6df1450

Please sign in to comment.