Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
everoddandeven committed Oct 10, 2024
1 parent 6d381d6 commit 3b554e3
Show file tree
Hide file tree
Showing 89 changed files with 1,021 additions and 1,579 deletions.
15 changes: 9 additions & 6 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,18 @@ export class AppComponent {
this.load();
}

private async load(): Promise<void> {
private load(): void {
this.loading = true;

try {
this.daemonRunning = await this.daemonService.isRunning();
}
catch(error) {
this.daemonService.isRunning().then((running: boolean) => {
this.daemonRunning = running;
this.loading;
}).catch((error) => {
console.error(error);
}
this.daemonRunning = false;
}).finally(() => {
this.loading = false;
});

this.loading = false;
}
Expand Down
2 changes: 0 additions & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ import { BlockchainModule } from './pages/blockchain/blockchain.module';
import { AppComponent } from './app.component';
import { LoadComponent } from "./shared/components/load/load.component";
import { BansModule } from './pages/bans/bans.module';
import { NavbarComponent } from "./shared/components/navbar/navbar.component";
import { MiningModule } from './pages/mining/mining.module';
import { TransactionsModule } from './pages/transactions/transactions.module';
import { OutputsModule } from './pages/outputs/outputs.module';
import { SidebarComponent } from './shared/components';
import { SettingsModule } from './pages/settings/settings.module';
import { LogsModule } from './pages/logs/logs.module';
import { VersionModule } from './pages/version/version.module';
Expand Down
6 changes: 5 additions & 1 deletion src/app/core/services/daemon/daemon-data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ export class DaemonDataService {
}
this._firstRefresh = true;
this.refreshInterval = setInterval(() => {
this.refresh();
this.refresh().then().catch((error: any) => {
console.error(error);
});
},this.refreshTimeoutMs);
}

Expand Down Expand Up @@ -343,6 +345,8 @@ export class DaemonDataService {
if (firstRefresh) {
this.daemonService.pruneBlockchain(true).then((info) => {
this._isBlockchainPruned = info.pruned;
}).catch((error) => {
console.error(error);
});
}
this._gettingIsBlockchainPruned = false;
Expand Down
Loading

0 comments on commit 3b554e3

Please sign in to comment.