Skip to content

Commit

Permalink
Fixed search
Browse files Browse the repository at this point in the history
  • Loading branch information
Regynate committed Apr 30, 2024
1 parent c0b9191 commit aa93239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/ContentLog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function ContentLog({ year, month }: { year: string, month: string }) {
const [searchText, setSearchText] = useState("");

const logs = useLog(state.currentChannel ?? "", state.currentUsername ?? "", year, month)
.filter(log => log.text.toLowerCase().includes(searchText.toLowerCase()));
.filter(log => (log.text + log.systemText).toLowerCase().includes(searchText.toLowerCase()));

const Row = ({ index, style }: { index: number, style: CSSProperties }) => (
<div style={style}><LogLine key={logs[index].id ? logs[index].id : index} message={logs[index]} /></div>
Expand Down

0 comments on commit aa93239

Please sign in to comment.