Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/features/interactions/InteractionsTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function InteractionsTab(props) {
const events = hackathon.events;

const searchEvents = (value) => {
var newEvents = events.filter((e) => e.name.includes(searchText));
var newEvents = events.filter((e) => e.name.toLowerCase().includes(searchText.toLowerCase()));
setSearchResults(newEvents);
setSearchText(value);
};
Expand All @@ -41,7 +41,7 @@ export function InteractionsTab(props) {
const formattedEvents = !events
? []
: events
.filter((e) => e.name.includes(searchText))
.filter((e) => e.name.toLowerCase().includes(searchText.toLowerCase()))
.map((event) => {
const eventType = event.type ?? "none";
const loc =
Expand Down
4 changes: 2 additions & 2 deletions app/features/swag/SwagTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function SwagTab(props) {
const swagItems = hackathon.swag;

const searchSwagItems = (value) => {
var newSwagItems = swagItems.filter((s) => s.name.includes(searchText));
var newSwagItems = swagItems.filter((s) => s.name.toLowerCase().includes(searchText.toLowerCase()));
setSearchResults(newSwagItems);
setSearchText(value);
};
Expand All @@ -40,7 +40,7 @@ export function SwagTab(props) {
const formattedSwagItems = !swagItems
? []
: swagItems
.filter((s) => s.name.includes(searchText))
.filter((s) => s.name.toLowerCase().includes(searchText.toLowerCase()))
.map((item) => {
return (
<TouchableOpacity
Expand Down