Update WarmUp.tsx (#5308)
If for any reason api is not ready this will most likely brake
This commit is contained in:
parent
aad884bc2f
commit
a91832a054
@ -10,7 +10,7 @@ function WarmUp (): React.ReactElement {
|
||||
const indexes = useCall<unknown>(isApiReady && api.derive.accounts?.indexes);
|
||||
const registrars = useCall<unknown>(isApiReady && api.query.identity?.registrars);
|
||||
const issuance = useCall<unknown>(isApiReady && api.query.balances?.totalIssuance);
|
||||
const historyDepth = useCall<unknown>(api.query.staking?.historyDepth);
|
||||
const historyDepth = useCall<unknown>(isApiReady && api.query.staking?.historyDepth);
|
||||
const [hasValues, setHasValues] = useState(false);
|
||||
|
||||
useEffect((): void => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user