Skip to content

Commit

Permalink
Fix checking if null in dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
loftux committed May 6, 2021
1 parent ad11b53 commit 98c8839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dashboard/dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class Dashboard {
// Add the location if present. Sometimes TeslaFi includes that in the notes already, so check for that
if (
this.teslacar.location &&
notes.indexOf(this.teslacar.location) === -1 &&
notes && notes.indexOf(this.teslacar.location) === -1 &&
this.teslacar.location !== 'No Tagged Location Found'
) {
notes = notes + ' @\u200A' + this.teslacar.location;
Expand Down

0 comments on commit 98c8839

Please sign in to comment.