Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
fix: no result div box does not appear when there is no result
Browse files Browse the repository at this point in the history
  • Loading branch information
jia-deriv committed Nov 10, 2023
1 parent 2d6b0d4 commit 520e39b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const SearchResults = ({ onSearchKeyChange }: SearchResultsProps) => {
showSearchresults={showSearchresults}
onChange={(e) => setSearchKey(e)}
content={
results.length !== 0 && (
(results.length || searchKey) && (
<div className="flex flex-col items-start gap-general-md">
{searchKey !== '' && (
<Text size="lg">Results for “{searchKey}</Text>
Expand Down

0 comments on commit 520e39b

Please sign in to comment.