Skip to content

Commit

Permalink
Fixed error screen error (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Vilensky authored Mar 26, 2020
1 parent 68a8938 commit a1c12aa
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions app/screens/settings/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,18 @@ class Settings extends Component<Props, State> {
<SettingRow upperPartLeft={genesisTime ? getFormattedTimestamp(genesisTime) : 'Smeshing not set.'} isUpperPartLeftText rowName="Genesis time" />
<SettingRow upperPartLeft={`0x${getAddress(rewardsAddress)}` || 'Smeshing not set.'} isUpperPartLeftText rowName="Rewards address" />
<SettingRow upperPartLeft={networkId} isUpperPartLeftText rowName="Network id" />
<SettingRow upperPartLeft={`Peers: ${status.peers}. Min peers: ${status.minPeers}. Max peers: ${status.maxPeers}.`} isUpperPartLeftText rowName="Network status" />
<SettingRow
upperPartLeft={`Synced: ${status.synced ? 'true' : 'false'}. Synced layer: ${status.syncedLayer}. Current layer: ${status.currentLayer}. Verified layer: ${
status.verifiedLayer
}.`}
isUpperPartLeftText
rowName="Sync status"
/>
{status ? (
<SettingRow upperPartLeft={`Peers: ${status.peers}. Min peers: ${status.minPeers}. Max peers: ${status.maxPeers}.`} isUpperPartLeftText rowName="Network status" />
) : null}
{status ? (
<SettingRow
upperPartLeft={`Synced: ${status.synced ? 'true' : 'false'}. Synced layer: ${status.syncedLayer}. Current layer: ${status.currentLayer}. Verified layer: ${
status.verifiedLayer
}.`}
isUpperPartLeftText
rowName="Sync status"
/>
) : null}
<SettingRow upperPart={stateRootHash} isUpperPartLeftText rowName="Node state root hash" />
<SettingRow upperPartRight={<Button onClick={this.openLogFile} text="View Log" width={180} />} rowName="View log file" />
</SettingsSection>
Expand Down

0 comments on commit a1c12aa

Please sign in to comment.