Skip to content

Commit

Permalink
fix(efb): landing calculator widget runway shows correct runway headi…
Browse files Browse the repository at this point in the history
…ng (#7674)

* fix(efb): landing calculator widget runway shows 36 instead of 00 when heading is below 5 degrees

* chore: changelog.md
  • Loading branch information
2hwk authored Jan 7, 2023
1 parent 07674ec commit 81a8ee3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
1. [EFB] Fix and improve pushback system and add API documentation - @frankkopp (Frank Kopp)
1. [RMP] RMPs navigation backup - Julian Sebline (Julian Sebline#8476 on Discord)
1. [SEC] Fix GND SPLR logic, add missing GND SPLR partial extension condition - @lukecologne (luke)
1. [FMGC] Improved importing flight plans from MSFS World Map - @frankkopp (Frank Kopp)
1. [FMGC] Improved importing flight plans from MSFS World Map - @frankkopp (Frank Kopp)
1. [EFB] Added boarding time indication to Payload page - @ChristianLutzCL (Christian Lutz) @frankkopp (Frank Kopp)

1. [EFB] Show correct runway numbers in landing calculator's runway widget when heading is between 0-5 degrees - @2hwk (2Cas#1022)
## 0.9.0

1. [MODEL] Add Wheel Chocks and GSE Safety Cones - @bouveng (Johan Bouveng)
Expand Down Expand Up @@ -1156,4 +1156,4 @@
1. [DCDU] Fixed MSG- and MSG+ button labels - @tyler58546 (tyler58546)
1. [ISIS] Fixed issue where ISIS was allowing a bug to be set while in the OFF state - Patrick Macken (@Pat M on
Discord)
1. [EFB] Added estimated boarding time to Payload screen - @ChristianLutzCL (Christian Lutz)
1. [EFB] Added estimated boarding time to Payload screen - @ChristianLutzCL (Christian Lutz)
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ interface RunwayNumberProps {
}

const RunwayNumber = ({ heading }: RunwayNumberProps) => {
const displayedHeading = heading === 360 || heading === 0 ? 360 : heading! % 360;
const displayedHeading = (heading! % 360 < 5) ? 360 : heading! % 360;

return (
<div className="mx-auto w-min text-4xl font-bold text-white">
Expand Down

0 comments on commit 81a8ee3

Please sign in to comment.