Skip to content

Commit

Permalink
fixed compass angle at null
Browse files Browse the repository at this point in the history
  • Loading branch information
fyang151 committed Oct 27, 2024
1 parent 058ebe4 commit 48261d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/website/views/components/BoatCompass/BoatCompass.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class BoatCompass extends React.Component<BoatCompassProps> {

_rotateBoatString(boatAngle: number | null): string {
if (boatAngle == null) {
return `rotate0deg)`;
return `rotate(0deg)`;
} else {
return `rotate(${this._rotateBoat(boatAngle)}deg)`;
}
Expand Down

0 comments on commit 48261d6

Please sign in to comment.