Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "frontend",
"version": "0.8.17",
"version": "0.8.18",
"scripts": {
"install:deps": "npm install",
"start": "npm install && ng serve --configuration local --open",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/features/dashboard/dashboard.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { catchError, map, Observable, tap } from 'rxjs';
import { catchError, map, Observable } from 'rxjs';
import { DashboardPeer, DashboardPeerStatus } from '@shared/types/dashboard/dashboard.peer';
import { RustService } from '@core/services/rust.service';
import { ONE_MILLION, toReadableDate } from '@openmina/shared';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class NodesOverviewService {
])
.pipe(
map((response: [any, NodeDetailsResponse]) => this.mapNodeTipsResponse(response, nodeParam)),
catchError(err => this.mapNodeTipsErrorResponse(nodeParam)),
catchError(() => this.mapNodeTipsErrorResponse(nodeParam)),
);
}

Expand Down Expand Up @@ -82,9 +82,9 @@ export class NodesOverviewService {
}
return {
name: nodeParam.name,
kind: nodeDetails?.transition_frontier.sync.phase,
snarks: nodeDetails.snark_pool.snarks,
transactions: nodeDetails.transaction_pool.transactions,
kind: nodeDetails ? nodeDetails.transition_frontier.sync.phase : (hasValue(node.synced) ? NodesOverviewNodeKindType.SYNCED : node.kind),
snarks: nodeDetails?.snark_pool.snarks,
transactions: nodeDetails?.transaction_pool.transactions,
bestTipReceived: toReadableDate(node.best_tip_received / ONE_MILLION),
bestTipReceivedTimestamp: node.best_tip_received / ONE_MILLION,
bestTip: node.blocks[0]?.hash,
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ export const environment: Readonly<MinaEnv> = {
name: 'staging-devnet-bp-3',
url: 'https://staging-devnet-openmina-bp-3.minaprotocol.network',
},
{
name: 'Web Node 1',
isWebNode: true,
},
// {
// name: 'Web Node 1',
// isWebNode: true,
// },
// {
// name: 'http://65.109.105.40:3000',
// url: 'http://65.109.105.40:3000',
Expand Down
Loading