Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
fix: unused check for program, fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
R-K-H committed Mar 6, 2024
1 parent 0685f89 commit daa4b7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hooks/useOpenbookTwap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export function useOpenbookTwap() {
proposal: ProposalAccountWithKey,
market: MarketAccountWithKey,
) => {
if (!wallet.publicKey || !openbook || !openbookTwap) {
if (!wallet.publicKey || !openbook) {
throw new Error('Some variables are not initialized yet...');
}

Expand Down
2 changes: 1 addition & 1 deletion hooks/useTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ type TokensDict = Partial<{ [key in TokenKeys]: Token }>;
export function useTokens() {
const { network } = useNetworkConfiguration();

const defaultTokens = useMemo(() => {
const defaultTokens: TokensDict = useMemo(() => {
switch (network) {
case Networks.Devnet:
return { ...staticTokens, ...devnetTokens };
Expand Down

0 comments on commit daa4b7c

Please sign in to comment.