Skip to content

Commit

Permalink
remove press
Browse files Browse the repository at this point in the history
  • Loading branch information
akrakman committed Oct 31, 2022
1 parent c1e491f commit 1d5b416
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/frontend/src/components/SearchAndDisplayResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export default function Searching() {
const [query, setQuery] = useState('');
const [searchParams, setSearchParams] = useSearchParams();
const [pageNum, setPageNum] = useState(1);
const press = false;
const emptyarray: string[] = [];
const [selected, setSelected] = useState(emptyarray);
const { loading, error, apartments, hasMore } = getApartments(
Expand Down Expand Up @@ -123,7 +122,7 @@ export default function Searching() {
<br />
<br />
<div>
{press && apartments.length === 0 && !loading && 'None found'}
{apartments.length === 0 && !loading && 'None found'}
</div>
<div>
{apartments.map((apartment, i) => {
Expand All @@ -143,8 +142,8 @@ export default function Searching() {
}
})}
</div>
<div>{press && loading && 'Loading...'}</div>
<div>{press && error && 'Error...'}</div>
<div>{loading && 'Loading...'}</div>
<div>{error && 'Error...'}</div>
</div>
</div>
);
Expand Down

3 comments on commit 1d5b416

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCover
TOTAL1710100%

Tests Skipped Failures Errors Time
36 0 💤 0 ❌ 0 🔥 0.712s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCover
TOTAL1710100%

Tests Skipped Failures Errors Time
36 0 💤 0 ❌ 0 🔥 1.008s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCover
TOTAL1710100%

Tests Skipped Failures Errors Time
36 0 💤 0 ❌ 0 🔥 0.780s ⏱️

Please sign in to comment.