Skip to content

Commit

Permalink
fix: 부스 검색 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyoeunkh committed May 20, 2024
1 parent cb8d332 commit 6e1e643
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/BoothListPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ const BoothListPage: React.FC = () => {
boothList
.filter((booth) => {
return (
(booth.boothnum === parseInt(input) || booth.boothName.includes(input)) &&
(!booth.host || booth.host.includes(input))
booth.boothnum === parseInt(input) ||
booth.boothName.includes(input) ||
(booth.host && booth.host.includes(input))
);
})
.map((booth) => {
Expand Down

0 comments on commit 6e1e643

Please sign in to comment.