Skip to content

Commit

Permalink
fix: 🐛 make vmag and rcs nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Jan 21, 2024
1 parent 7391f2c commit 0750c9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/objects/DetailedSatellite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export class DetailedSatellite extends Satellite {
span: string = '';
user: string = '';
source: string = '';
vmag: number;
rcs: number;
vmag?: number|null;
rcs?: number|null;
altId: string = '';
altName: string = '';

Expand All @@ -76,8 +76,8 @@ export class DetailedSatellite extends Satellite {
this.length = info.length ?? '';
this.diameter = info.diameter ?? '';
this.source = info.source ?? '';
this.vmag = info.vmag ?? 0;
this.rcs = info.rcs ?? 0;
this.vmag = info.vmag ?? null;
this.rcs = info.rcs ?? null;
this.altId = info.altId ?? '';
this.altName = info.altName ?? '';
this.initOperationDetails_(info);
Expand Down

0 comments on commit 0750c9a

Please sign in to comment.