Skip to content

Commit

Permalink
fix(fcu): add leading zero below 1000hPa (#9596)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukecologne authored Nov 27, 2024
1 parent cf3a5f1 commit d659039
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class EisDisplay extends DisplayComponent<EisDisplayProps> {
} else if (baroValueMode === 0) {
return 'Std';
} else if (baroValueMode === 1) {
return Math.round(baroValue).toString();
return Math.round(baroValue).toString().padStart(4, '0');
} else {
return baroValue.toFixed(2);
}
Expand Down

0 comments on commit d659039

Please sign in to comment.