mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-19 15:51:11 +00:00
Hotfix location on map
This commit is contained in:
@@ -42,9 +42,9 @@ class Location extends React.Component<Location.Props, Location.State> {
|
|||||||
public render() {
|
public render() {
|
||||||
const { node, position, focused } = this.props;
|
const { node, position, focused } = this.props;
|
||||||
const { left, top, quarter } = position;
|
const { left, top, quarter } = position;
|
||||||
const { height, propagationTime } = node;
|
const { height, propagationTime, city } = node;
|
||||||
|
|
||||||
if (!location) {
|
if (!city) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -80,7 +80,8 @@ class Location extends React.Component<Location.Props, Location.State> {
|
|||||||
hash,
|
hash,
|
||||||
blockTime,
|
blockTime,
|
||||||
blockTimestamp,
|
blockTimestamp,
|
||||||
propagationTime
|
propagationTime,
|
||||||
|
city,
|
||||||
} = this.props.node;
|
} = this.props.node;
|
||||||
|
|
||||||
let validatorRow = null;
|
let validatorRow = null;
|
||||||
@@ -108,7 +109,7 @@ class Location extends React.Component<Location.Props, Location.State> {
|
|||||||
<td><Icon src={nodeTypeIcon} alt="Implementation" /></td><td colSpan={5}>{implementation} v{version}</td>
|
<td><Icon src={nodeTypeIcon} alt="Implementation" /></td><td colSpan={5}>{implementation} v{version}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><Icon src={nodeLocationIcon} alt="Location" /></td><td colSpan={5}>{location[2]}</td>
|
<td><Icon src={nodeLocationIcon} alt="Location" /></td><td colSpan={5}>{city}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><Icon src={blockIcon} alt="Block" /></td><td colSpan={5}>#{formatNumber(height)}</td>
|
<td><Icon src={blockIcon} alt="Block" /></td><td colSpan={5}>#{formatNumber(height)}</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user