Skip to content

Commit d9fe8b2

Browse files
Remove usage of Array.at() - it is not supported in older browser versions (#2020)
remove usage of Array.at() - it is not supported in older browser versions.
1 parent 90f86da commit d9fe8b2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/tricky-masks-agree.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@guardian/react-crossword': patch
3+
---
4+
5+
remove usage of Array.at() - it is not supported in older browser versions.

libs/@guardian/react-crossword/src/utils/getCellsWithProgressForGroup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const getCellsWithProgressForEntry = ({
5454
if (cell) {
5555
cellsWithProgress.push({
5656
...cell,
57-
progress: progress.at(x)?.[y] ?? '',
57+
progress: progress[x]?.[y] ?? '',
5858
separator: getSeparatorFromEntry(entry, i),
5959
});
6060
}

0 commit comments

Comments
 (0)