make tsc happy

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2025-12-01 17:57:06 +03:00
parent a0a076b6dc
commit 5e96d94b85
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB
4 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "ghost-lite", "name": "ghost-lite",
"version": "0.2.0", "version": "0.2.1",
"description": "Web application for Ghost and Casper chain.", "description": "Web application for Ghost and Casper chain.",
"author": "Uncle f4ts0 <f4ts0@ghostchain.io>", "author": "Uncle f4ts0 <f4ts0@ghostchain.io>",
"maintainers": [ "maintainers": [

View File

@ -1,4 +1,4 @@
import { HeartPulse, SendToBack, Book, Users, Handshake } from "lucide-react" import { HeartPulse, SendToBack, Book, Users } from "lucide-react"
import { FaGithub } from "react-icons/fa" import { FaGithub } from "react-icons/fa"
import { Link, useLocation } from "react-router-dom" import { Link, useLocation } from "react-router-dom"
import { useEffect } from "react" import { useEffect } from "react"

View File

@ -1,8 +1,8 @@
import useSWR from "swr" import useSWR from "swr"
import { getDynamicBuilder, getLookupFn } from "@polkadot-api/metadata-builders" import { getDynamicBuilder, getLookupFn } from "@polkadot-api/metadata-builders"
import { mergeUint8, toHex, fromHex } from "@polkadot-api/utils" import { mergeUint8, toHex } from "@polkadot-api/utils"
import { type SS58String, Binary, Enum } from "@polkadot-api/substrate-bindings" import { type SS58String, Enum } from "@polkadot-api/substrate-bindings"
import { useUnstableProvider } from "./useUnstableProvider" import { useUnstableProvider } from "./useUnstableProvider"
import { useMetadata } from "./useMetadata" import { useMetadata } from "./useMetadata"

View File

@ -14,7 +14,7 @@ export type ValidatorDetails = {
export const useCurrentValidators = ({ address }: { address: string | undefined }) => { export const useCurrentValidators = ({ address }: { address: string | undefined }) => {
const { chainHead$, chainId } = useUnstableProvider() const { chainHead$, chainId } = useUnstableProvider()
const metadata = useMetadata() const metadata = useMetadata()
const { data: currentValidators, error } = useSWRSubscription( const { data: currentValidators } = useSWRSubscription(
chainHead$ && address && chainId && metadata chainHead$ && address && chainId && metadata
? ["validators", chainHead$, address, chainId, metadata] ? ["validators", chainHead$, address, chainId, metadata]
: null, : null,