Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Casal authored and Andrew Casal committed Sep 8, 2024
1 parent 10a22f9 commit fec8c83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 3 additions & 1 deletion src/components/PaginatedTable/PaginatedTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,9 @@ function _PaginatedTable<RawEntryT = any, GroomedEntryT = RawEntryT>(
<tr
key={row.id}
className={
props.highlightedRows && props.highlightedRows.includes(row) ? "queued" : ""
props.highlightedRows && props.highlightedRows.includes(row)
? "queued"
: ""
}
onMouseUp={(ev) =>
props.onRowClick && props.onRowClick(row, ev, rows)
Expand Down
10 changes: 4 additions & 6 deletions src/views/User/GameHistoryTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,12 @@ export function GameHistoryTable(props: GameHistoryProps) {
if (annulQueue.at(-1)) {
window.getSelection()?.removeAllRanges();
const indexes = [
rows.findIndex(r => r.id === annulQueue.at(-1).id),
rows.findIndex(r => r.id === row.id),
]
rows.findIndex((r) => r.id === annulQueue.at(-1).id),
rows.findIndex((r) => r.id === row.id),
];
const minIndex = Math.min(...indexes);
const maxIndex = Math.max(...indexes);
setAnnulQueue(
rows.slice(minIndex, maxIndex +1).filter(r => !r.annulled)
);
setAnnulQueue(rows.slice(minIndex, maxIndex + 1).filter((r) => !r.annulled));
}
} else {
toggleQueued(row);
Expand Down

0 comments on commit fec8c83

Please sign in to comment.