From fec8c839aaf12464376ca70e31f5b5a94ad404ee Mon Sep 17 00:00:00 2001 From: Andrew Casal Date: Sat, 7 Sep 2024 20:02:05 -0400 Subject: [PATCH] prettier --- src/components/PaginatedTable/PaginatedTable.tsx | 4 +++- src/views/User/GameHistoryTable.tsx | 10 ++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/PaginatedTable/PaginatedTable.tsx b/src/components/PaginatedTable/PaginatedTable.tsx index e9ac2a2d8d..474a321246 100644 --- a/src/components/PaginatedTable/PaginatedTable.tsx +++ b/src/components/PaginatedTable/PaginatedTable.tsx @@ -360,7 +360,9 @@ function _PaginatedTable( props.onRowClick && props.onRowClick(row, ev, rows) diff --git a/src/views/User/GameHistoryTable.tsx b/src/views/User/GameHistoryTable.tsx index 9d989fc4d2..0466fcbc53 100644 --- a/src/views/User/GameHistoryTable.tsx +++ b/src/views/User/GameHistoryTable.tsx @@ -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);