From 2de069113de6742bbccaba6bdb383315ece6dd8c Mon Sep 17 00:00:00 2001 From: Iain Collins Date: Mon, 30 May 2022 21:32:32 +0100 Subject: [PATCH] Improve route view --- package.json | 2 +- src/client/pages/nav/route.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5754ce3a..8cb7ad8c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "icarus", - "version": "0.13.7", + "version": "0.14.0", "description": "ICARUS Terminal for Elite Dangerous", "scripts": { "build": "npm run build:client && npm run build:app && npm run build:service && npm run build:package", diff --git a/src/client/pages/nav/route.js b/src/client/pages/nav/route.js index d1244c7e..2ef319dc 100644 --- a/src/client/pages/nav/route.js +++ b/src/client/pages/nav/route.js @@ -133,7 +133,7 @@ export default function NavListPage () { {route.system}
{route.starClass} Class, - {route.starClass.match(/([OBAFGKM])/) ? 'Fuel Star' : Not Fuel Star} + {route.starClass.match(/^[OBAFGKM]/) ? 'Fuel Star' : Not Fuel Star} {route?.isCurrentSystem === false &&
{route.distance.toLocaleString(undefined, { maximumFractionDigits: 2 })} Ly
} {route?.isCurrentSystem === true && <>
Current Location} @@ -146,6 +146,9 @@ export default function NavListPage () { {route?.isCurrentSystem === true && <>Current Location}
+ + + ) })}