Skip to content

Commit

Permalink
Merge branch 'master' into @daniel/nft-search
Browse files Browse the repository at this point in the history
  • Loading branch information
derHowie authored Dec 20, 2023
2 parents 8a19fb9 + a2dcf0b commit 774a1df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/core/state/currentSettings/featureFlags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const featureFlagsStore = createStore<FeatureFlagsStore>(
full_watching_wallets: false,
hw_wallets_enabled: true,
command_k_internal_shortcuts_enabled: false,
custom_rpc: false,
custom_rpc: true,
},
setFeatureFlag: (key, value) => {
const { featureFlags } = get();
Expand Down
8 changes: 4 additions & 4 deletions src/entries/popup/pages/settings/customChain/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isEqual } from 'lodash';
import React, { useCallback, useEffect, useRef, useState } from 'react';
import { useCallback, useEffect, useRef, useState } from 'react';
import { useLocation } from 'react-router';
import { Chain } from 'wagmi';

Expand Down Expand Up @@ -320,17 +320,17 @@ export function SettingsCustomChain() {
symbol: true,
explorerUrl: true,
});
const debuncedRpcUrl = useDebounce(customRPC.rpcUrl, 500);
const inputRef = useRef<HTMLInputElement>(null);

const debouncedRpcUrl = useDebounce(customRPC.rpcUrl, 1000);
const {
data: chainMetadata,
isFetching: chainMetadataIsFetching,
isError: chainMetadataIsError,
isFetched: chainMetadataIsFetched,
} = useChainMetadata(
{ rpcUrl: debuncedRpcUrl },
{ enabled: !!debuncedRpcUrl && isValidUrl(debuncedRpcUrl) },
{ rpcUrl: debouncedRpcUrl },
{ enabled: !!debouncedRpcUrl && isValidUrl(debouncedRpcUrl) },
);
const prevChainMetadata = usePrevious(chainMetadata);

Expand Down

0 comments on commit 774a1df

Please sign in to comment.