Skip to content

Commit

Permalink
fix(efb): landing calculator widget runway shows 36 instead of 00 whe…
Browse files Browse the repository at this point in the history
…n heading is below 5 degrees
  • Loading branch information
2hwk committed Dec 30, 2022
1 parent 0673106 commit 08a835c
Showing 1 changed file with 1 addition and 1 deletion.
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 08a835c

Please sign in to comment.