Skip to content

Commit 90b0d93

Browse files
committed
feat: fixed build error of a typescript error using let
1 parent 3ddb4bb commit 90b0d93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/QuizHelpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export function haveSameElements(arr1: number[], arr2: number[]): boolean {
1818
if (arr1.length !== arr2.length) {
1919
return false;
2020
}
21-
let arr1Sorted = arr1.sort();
22-
let arr2Sorted = arr2.sort();
21+
const arr1Sorted = arr1.sort();
22+
const arr2Sorted = arr2.sort();
2323
for (let i = 0; i < arr1Sorted.length; i++) {
2424
if (arr1Sorted[i] !== arr2Sorted[i]) {
2525
return false;

0 commit comments

Comments
 (0)