Skip to content

Commit

Permalink
fix: as comments
Browse files Browse the repository at this point in the history
  • Loading branch information
evilpeach committed Jun 12, 2024
1 parent 94978fe commit 964a688
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/lib/pages/block-details/lite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ import { useBlockDataWithValidatorLcd } from "./data";

export const BlockDetailsLite = ({ height }: { height: number }) => {
const { data, isLoading } = useBlockDataWithValidatorLcd(height);
const { data: latestHeight } = useLatestBlockLcd();
const { data: latestHeight, isLoading: isLatestHeightLoading } =
useLatestBlockLcd();

if (isLoading) return <Loading withBorder />;
if (isLoading || isLatestHeightLoading) return <Loading withBorder />;
if (latestHeight && latestHeight > height && !data)
return (
<EmptyState
Expand Down
2 changes: 1 addition & 1 deletion src/lib/services/tx/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
zTxByHashResponseLcd,
zTxsCountResponse,
zTxsResponse,
} from "../types/tx";
} from "../types";
import type { BechAddr, Option, TxFilters } from "lib/types";
import { camelToSnake, parseWithError } from "lib/utils";

Expand Down
2 changes: 1 addition & 1 deletion src/lib/services/tx/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
BlockTxsResponse,
TxData,
TxsResponse,
} from "../types/tx";
} from "../types";
import {
CELATONE_QUERY_KEYS,
useBaseApiRoute,
Expand Down

0 comments on commit 964a688

Please sign in to comment.