mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-12 07:41:09 +00:00
Show ?.?.? for invalid semver (#108)
This commit is contained in:
@@ -133,7 +133,7 @@ export class Row extends React.Component<Row.Props, Row.State> {
|
||||
width: 90,
|
||||
setting: 'implementation',
|
||||
render: ({ implementation, version }) => {
|
||||
const [semver] = version.match(SEMVER_PATTERN) || [version];
|
||||
const [semver] = version.match(SEMVER_PATTERN) || ['?.?.?'];
|
||||
const implIcon = implementation === 'parity-polkadot' ? parityPolkadotIcon
|
||||
: implementation === 'substrate-node' ? paritySubstrateIcon
|
||||
: implementation === 'robonomics-node' ? airalabRobonomicsIcon
|
||||
|
||||
Reference in New Issue
Block a user