Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
fix(widget): Fix map widget to be conform with GPS data message type
Browse files Browse the repository at this point in the history
  • Loading branch information
fussel178 authored and Ludwig Richter committed Mar 10, 2021
1 parent 5856f52 commit 96b66ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/model/messages/gps-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { DataMessage } from '../channels';
interface GpsDataData {
[key: string]: JsonSerializable;
satCount: number;
fix: number;
north: number;
east: number;
fix: boolean;
latitude: number;
longitude: number;
time: number;
className: string;
}
Expand Down
4 changes: 2 additions & 2 deletions src/widgets/map-widget/widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ export function Widget() {
{latestMessage && (
<CircleMarker
center={[
latestMessage?.result[0].north,
latestMessage?.result[0].east
latestMessage?.result[0].latitude,
latestMessage?.result[0].longitude
]}
radius={10}
/>
Expand Down

0 comments on commit 96b66ad

Please sign in to comment.