fix: tighter numerical tank name inference

This commit is contained in:
TrèsAbhi committed 2024-03-09 11:50:47 -06:00
1 parent 889ae39e3b
commit 8e216ebe46
1 file changed
+1 -1
+1 -1
View File
@@ -13,7 +13,7 @@ export default async function resolveTankId(
locale: Locale,
) {
const { translate } = translator(locale);
const number = typeof tank === 'string' ? parseInt(tank) : tank;
const number = typeof tank === 'string' ? Number(tank) : tank;
if (Number.isNaN(number)) {
const searchResult = go(`${tank}`, await tanksDefinitionsArray, {