Skip to content

Commit

Permalink
fix: use default device name if not set
Browse files Browse the repository at this point in the history
  • Loading branch information
mahyarmirrashed committed Jul 16, 2023
1 parent 724ad4e commit 23a9dd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ export default class YaosPlugin extends Plugin {
DEFAULT_YAOS_SETTINGS,
await this.loadData()
);

if (this.settings.deviceName === "")
this.settings.deviceName = DEFAULT_YAOS_SETTINGS.deviceName;
}

async saveSettings(settings = this.settings) {
Expand Down

0 comments on commit 23a9dd4

Please sign in to comment.