Skip to content

Commit

Permalink
Convert bearingCorrection to number if it is a string (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
egeofalcao authored Oct 28, 2022
1 parent 512b51a commit 3e70548
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/bearing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export const bearingCorrectionValueFormatter = (params: ValueFormatterParams): s
if (value == null) {
return "-";
}
if (typeof value === 'string') {
return convertDDToDMS(bearingNumberParser(value), true, true);
}
return convertDDToDMS(value, true, true);
};

Expand Down

0 comments on commit 3e70548

Please sign in to comment.