Skip to content

Commit

Permalink
fix(app): biome lints
Browse files Browse the repository at this point in the history
  • Loading branch information
cor committed Jun 7, 2024
1 parent fd40223 commit f8b5caa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 0 additions & 4 deletions app/src/lib/queries/balance.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import * as v from "valibot"
import { KEY } from "$lib/constants/keys.ts"
import { CHAIN_URLS } from "$lib/constants"
import type { Address } from "viem"
import { getEvmTokensInfo } from "./token-info.ts"
import { createQueries, createQuery } from "@tanstack/svelte-query"
import type { ChainId } from "$/lib/constants/assets.ts"
import { isValidEvmAddress } from "$lib/wallet/utilities/validate"
import { isValidCosmosAddress } from "$lib/wallet/utilities/validate"
import { raise } from "$lib/utilities/index.ts"
import { rawToBech32 } from "$lib/utilities/address.ts"
import type { chainsQuery } from "./chains.ts"
import type { chainsQueryDocument } from "$lib/graphql/documents/chains.ts"

/**
* TODO:
Expand Down
7 changes: 6 additions & 1 deletion app/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ let cosmosChains = derived(chains, $chains => {
)
})
$: if ($cosmosChains && $cosmosStore.rawAddress?.length && $cosmosStore.rawAddress?.length > 0) {
// ts bug, length can be undefined
$: if (
$cosmosChains &&
$cosmosStore.rawAddress?.length !== undefined &&
$cosmosStore.rawAddress?.length > 0
) {
console.log($cosmosChains)
cosmosBalances = cosmosBalancesQuery({
// https://stackoverflow.com/questions/77206461/type-guard-function-is-not-narrowing-the-type-in-array-filter
Expand Down

0 comments on commit f8b5caa

Please sign in to comment.