Skip to content

Commit c15cb16

Browse files
authored
Update buildingpart.js
1 parent 9631114 commit c15cb16

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/buildingpart.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,14 +360,14 @@ class BuildingPart {
360360
// remove final character.
361361
return parseFloat(length.substring(0, length.length - 2)) * 1000;
362362
}
363-
if (length.includes('mi')){
364-
// remove final character.
365-
return parseFloat(length.substring(0, length.length - 2)) * 5280 * 12 * 2.54 / 100;
366-
}
367363
if (length.includes('nmi')){
368364
// remove final character.
369365
return parseFloat(length.substring(0, length.length - 3)) * 1852;
370366
}
367+
if (length.includes('mi')){
368+
// remove final character.
369+
return parseFloat(length.substring(0, length.length - 2)) * 5280 * 12 * 2.54 / 100;
370+
}
371371
if (length.includes('m')){
372372
// remove final character.
373373
return parseFloat(length.substring(0, length.length - 1));

0 commit comments

Comments
 (0)