fix undefined state of the chain spec during loading

Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
Uncle Stretch 2026-11-23 15:16:15 +03:00
parent 5b8e34e8d0
commit 3c68811b85
Signed by: str3tch
GPG Key ID: 84F3190747EE79AA
3 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
{
"name": "ghost-dao-interface",
"private": true,
"version": "0.8.31",
"version": "0.8.32",
"type": "module",
"scripts": {
"dev": "vite",

View File

@ -454,12 +454,12 @@ const BridgeIn = ({ chainId, address, config, connect }) => {
metric={`${formatNumber(totalStaked ? totalStaked.toString() : "0", 2)} ${chainProperties ? chainProperties.properties.tokenSymbol : "CSPR"}`}
isLoading={!totalStaked}
label="Bridge Security Stake"
tooltip={`Total ${chainProperties.properties.tokenSymbol} securing the bridge, including validator, nominator, and pool stakes across the active validator set of ${chainProperties.name}.`}
tooltip={`Total ${chainProperties ? chainProperties.properties.tokenSymbol : ""} securing the bridge, including validator, nominator, and pool stakes across the active validator set of ${chainProperties ? chainProperties.name : ""}.`}
/>
<Metric
label="Block Delay"
tooltip={`Difference between the ${chain.name} block reported by your local RPC and the latest median ${chain.name} block agreed on by the active validator set of ${chainProperties.name}.`}
tooltip={`Difference between the ${chain.name} block reported by your local RPC and the latest median ${chain.name} block agreed on by the active validator set of ${chainProperties ? chainProperties.name : ""}.`}
isLoading={!blockDelayMetric}
metric={blockDelayMetric?.text}
/>

View File

@ -596,19 +596,19 @@ const BridgeOut = ({ chainId, address, config, connect }) => {
<Metric
metric={`${formatNumber(gatekeepedApy, 2)}%`}
label={`Stake\u00B2 APY`}
tooltip={`Gross annualized ${ftsoSymbol} ${bridgeNumbers()} Stake² yield, funded by ${chainProperties.name} revenue. Includes (3, 3) Stake¹ APY.`}
tooltip={`Gross annualized ${ftsoSymbol} ${bridgeNumbers()} Stake² yield, funded by ${chainProperties ? chainProperties.name : ""} revenue. Includes (3, 3) Stake¹ APY.`}
/>
<Metric
metric={`${formatNumber(totalStaked ? totalStaked.toString() : "0", 2)} ${chainProperties ? chainProperties.properties.tokenSymbol : "CSPR"}`}
isLoading={!totalStaked}
label="Bridge Security Stake"
tooltip={`Total ${ghstSymbol} securing the bridge, including validator, nominator, and pool stakes across the active validator set of ${chainProperties.name}.`}
tooltip={`Total ${ghstSymbol} securing the bridge, including validator, nominator, and pool stakes across the active validator set of ${chainProperties ? chainProperties.name : ""}.`}
/>
<Metric
label="Bridge-Out Queue"
tooltip={`Number of ${negativeBridgeNumbers()} Bridge-Out transactions currently queued and scheduled for processing by the active validator set of ${chainProperties.name}.`}
tooltip={`Number of ${negativeBridgeNumbers()} Bridge-Out transactions currently queued and scheduled for processing by the active validator set of ${chainProperties ? chainProperties.name : ""}.`}
isLoading={!Number.isFinite(counterForExodusRequests)}
metric={`${formatNumber(counterForExodusRequests)} (~10 mins)`}
/>