diff --git a/html_source/angular.json b/html_source/angular.json
index ab8733ac..93a668b8 100644
--- a/html_source/angular.json
+++ b/html_source/angular.json
@@ -11,8 +11,7 @@
"schematics": {
"@schematics/angular:component": {
"style": "scss",
- "skipTests": true,
- "standalone": true
+ "skipTests": true
}
},
"architect": {
diff --git a/html_source/src/app/pages/wallet/tabs/assets/assets.component.ts b/html_source/src/app/pages/wallet/tabs/assets/assets.component.ts
index 6ef4109e..278ddb1e 100644
--- a/html_source/src/app/pages/wallet/tabs/assets/assets.component.ts
+++ b/html_source/src/app/pages/wallet/tabs/assets/assets.component.ts
@@ -184,20 +184,22 @@ import { defaultImgSrc, zanoAssetInfo } from '@parts/data/assets';
-
-
-
- {{ 'Send' | translate }}
-
-
-
-
+
-
-
- {{ 'Swap' | translate }}
+
+
+ {{ 'Send' | translate }}
+
+
+
+
+
+ {{ 'Swap' | translate }}
+
+
+
diff --git a/html_source/src/app/pages/wallet/tabs/history/history.component.ts b/html_source/src/app/pages/wallet/tabs/history/history.component.ts
index 09d276cb..6b3c3790 100644
--- a/html_source/src/app/pages/wallet/tabs/history/history.component.ts
+++ b/html_source/src/app/pages/wallet/tabs/history/history.component.ts
@@ -262,7 +262,7 @@ import { zanoAssetInfo } from '@parts/data/assets';
{{ 'HISTORY.HIDDEN' | translate }}
diff --git a/html_source/src/app/parts/modals/asset-details/asset-details.component.ts b/html_source/src/app/parts/modals/asset-details/asset-details.component.ts
index 6252b986..376d278c 100644
--- a/html_source/src/app/parts/modals/asset-details/asset-details.component.ts
+++ b/html_source/src/app/parts/modals/asset-details/asset-details.component.ts
@@ -106,7 +106,7 @@ export class AssetDetailsComponent implements OnInit {
ngZone = inject(NgZone);
- zano_current_supply = null;
+ zano_current_supply = 'Unknown';
constructor(
public variablesService: VariablesService,
@@ -144,10 +144,10 @@ export class AssetDetailsComponent implements OnInit {
};
this.backendService.call_rpc(params1, (status1, response_data1) => {
- if (response_data1.result.status === 'OK') {
+ if (response_data1?.result?.status === 'OK') {
this.backendService.call_rpc(params2, (status2, response_data2) => {
this.ngZone.run(() => {
- this.zano_current_supply = response_data2?.['result']?.['total_coins'] ?? null;
+ this.zano_current_supply = response_data2?.['result']?.['total_coins'] ?? 'Unknown';
});
});
}
diff --git a/html_source/src/app/parts/pipes/history-type-messages-pipe/history-type-messages.pipe.ts b/html_source/src/app/parts/pipes/history-type-messages-pipe/history-type-messages.pipe.ts
index 19a23914..475a01c5 100644
--- a/html_source/src/app/parts/pipes/history-type-messages-pipe/history-type-messages.pipe.ts
+++ b/html_source/src/app/parts/pipes/history-type-messages-pipe/history-type-messages.pipe.ts
@@ -42,7 +42,7 @@ export class HistoryTypeMessagesPipe implements PipeTransform {
case 5:
return this.translate.instant('HISTORY.TYPE_MESSAGES.UPDATE_ALIAS');
case 6:
- return item.td['spn'] && item.td['spn'].length
+ return item.td?.['spn']?.length
? this.translate.instant('HISTORY.TYPE_MESSAGES.POS_REWARD')
: this.translate.instant('HISTORY.TYPE_MESSAGES.POW_REWARD');
case 7: