Skip to content

Commit d691aad

Browse files
author
smb2268
committed
Add radix param to parseInt
1 parent f6626f1 commit d691aad

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed
Binary file not shown.

src/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function accumulatePoints(currentTotal: number, currentValue: string): nu
2727
} else if (faceCards.includes(currentValue)) {
2828
return currentTotal + 10;
2929
} else {
30-
return currentTotal + parseInt(currentValue);
30+
return currentTotal + parseInt(currentValue, 10);
3131
}
3232
}
3333

0 commit comments

Comments
 (0)