From 8dc0eb24d8b93bbbfd14132b4cdfa621cbb830bf Mon Sep 17 00:00:00 2001 From: Spencer Ofwiti Date: Tue, 9 Feb 2021 11:32:37 +0300 Subject: [PATCH] Bug fix. --- angular.json | 3 +-- src/app/app.component.ts | 12 ++++++------ src/environments/environment.prod.ts | 2 +- src/environments/environment.ts | 2 +- src/index.html | 4 +--- 5 files changed, 10 insertions(+), 13 deletions(-) diff --git a/angular.json b/angular.json index 565b3bc..5f6d551 100644 --- a/angular.json +++ b/angular.json @@ -74,8 +74,7 @@ "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { - "browserTarget": "cic-staff-client:build", - "disableHostCheck": true + "browserTarget": "cic-staff-client:build" }, "configurations": { "production": { diff --git a/src/app/app.component.ts b/src/app/app.component.ts index cf70ca8..e41ee74 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -16,7 +16,7 @@ export class AppComponent implements OnInit { private transactionService: TransactionService, private blockSyncService: BlockSyncService ) { - this.blockSyncService.blockSync(); + // this.blockSyncService.blockSync(); } ngOnInit(): void { @@ -29,13 +29,13 @@ export class AppComponent implements OnInit { const sidebar = document.getElementById('sidebar'); const content = document.getElementById('content'); const sidebarCollapse = document.getElementById('sidebarCollapse'); - sidebarCollapse.classList.remove('active'); + sidebarCollapse?.classList.remove('active'); if (e.matches) { - sidebar.classList.add('active'); - content.classList.add('active'); + sidebar?.classList.add('active'); + content?.classList.add('active'); } else { - sidebar.classList.remove('active'); - content.classList.remove('active'); + sidebar?.classList.remove('active'); + content?.classList.remove('active'); } } diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index 05bef67..579c9e4 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -2,7 +2,7 @@ export const environment = { production: true, cicCacheUrl: 'http://localhost:5555', cicScriptsUrl: 'http://localhost:9999', - web3Provider: 'ws://localhost:63545', + web3Provider: 'http://localhost:63545', cicUssdUrl: 'http://localhost:63315', cicEthUrl: 'http://localhost:63314', contractAddress: '0x35Ef60C4624Eaf6AeEBeBec9Ddd3CBA6b24C4b17', diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 5ac2925..82d849c 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -6,7 +6,7 @@ export const environment = { production: false, cicCacheUrl: 'http://localhost:5555', cicScriptsUrl: 'http://localhost:9999', - web3Provider: 'ws://localhost:63545', + web3Provider: 'http://localhost:63545', cicUssdUrl: 'http://localhost:63315', cicEthUrl: 'http://localhost:63314', contractAddress: '0x35Ef60C4624Eaf6AeEBeBec9Ddd3CBA6b24C4b17', diff --git a/src/index.html b/src/index.html index 3bb799a..c070004 100644 --- a/src/index.html +++ b/src/index.html @@ -15,9 +15,7 @@ - - - +