[skip ci] Re-add removed lint rules

This commit is contained in:
schroda
2026-03-14 02:10:25 +01:00
parent 0a643655ad
commit 80829febb2
10 changed files with 18 additions and 16 deletions

View File

@@ -32,7 +32,7 @@ export const useBackButton = () => {
return 0;
}
const previousPage = historyToCheck.slice(-2)[0];
const [previousPage] = historyToCheck.slice(-2);
const isPreviousPageCurrentPage = previousPage === location.pathname;
const ignorePreviousPage = PAGES_TO_IGNORE.some((page) => !!previousPage.match(page));