feat: switched to parseInt

This commit is contained in:
TresAbhi committed 2023-06-27 02:13:07 +00:00
1 parent a67d1700fc
commit 9dc48c9125
1 file changed
+1 -1
+1 -1
View File
@@ -3,7 +3,7 @@ import errorWithCause from '../node/errorWithCause.js';
import { TANKS, tankopedia } from './tankopedia.js';
export default function resolveTankId(tank: string) {
const number = Number(tank);
const number = parseInt(tank);
if (Number.isNaN(number)) {
const searchResult = go(tank, TANKS, { keys: ['name'], limit: 1 });