diff --git a/packages/front/src/components/FlightModal/index.tsx b/packages/front/src/components/FlightModal/index.tsx index 6213d081..22fcfbf4 100644 --- a/packages/front/src/components/FlightModal/index.tsx +++ b/packages/front/src/components/FlightModal/index.tsx @@ -46,7 +46,7 @@ const FlightModal: FC = ({ show, onClose, flight }) => { CRUISING SPEED {flight.cruisingSpeed}

- FL {flight.cruisingLevel} + FL {flight.cruisingLevel.toString().padStart(3, "0")}

diff --git a/packages/front/src/components/IcaoFpl/index.tsx b/packages/front/src/components/IcaoFpl/index.tsx index f29d5445..bf45cc0c 100644 --- a/packages/front/src/components/IcaoFpl/index.tsx +++ b/packages/front/src/components/IcaoFpl/index.tsx @@ -12,7 +12,7 @@ const getIcaoFpl = (flight: Flight) => { `(FPL-${flight.callsign}-${formatFlightRules(flight.flightRules)}S`, `-1/${flight.aircraft.icaoCode}/${flight.aircraft.wakeTurbulence}-${flight.aircraft.equipment}/L1B1`, `-${flight.departureIcao}${flight.estimatedOffBlockTime}`, - `-${flight.cruisingSpeed}F${flight.cruisingLevel} ${flight.route}`, + `-${flight.cruisingSpeed}F${flight.cruisingLevel.toString().padStart(3, "0")} ${flight.route}`, `-${flight.arrivalIcao}${formatEet(flight.estimatedEnrouteMinutes)}`, `-${flight.remarks})` ] diff --git a/packages/front/src/components/IvaoButton/index.tsx b/packages/front/src/components/IvaoButton/index.tsx index a70013ba..fa9bf917 100644 --- a/packages/front/src/components/IvaoButton/index.tsx +++ b/packages/front/src/components/IvaoButton/index.tsx @@ -53,7 +53,7 @@ const IvaoButton: FC = ({ flight }) => { value={flight.cruisingSpeed.substr(1)} /> - + = ({ flight }) => { - const skyVectorLink = `https://skyvector.com/?fpl=${flight.cruisingSpeed}F${flight.cruisingLevel} ${flight.departureIcao} ${flight.route} ${flight.arrivalIcao}` + const skyVectorLink = `https://skyvector.com/?fpl=${flight.cruisingSpeed}F${flight.cruisingLevel.toString().padStart(3, "0")} ${flight.departureIcao} ${flight.route} ${flight.arrivalIcao}` return (