Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rustam-cb committed Jan 30, 2025
1 parent 12339e3 commit 56454fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/fund/components/FundCardAmountInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useOnrampExchangeRate } from '../hooks/useOnrampExhangeRate';
import type { FundCardAmountInputPropsReact } from '../types';
import { useFundContext } from './FundCardProvider';

const THROTTLE_DELAY = 5000;
const THROTTLE_DELAY_MS = 5000;

export const FundCardAmountInput = ({
className,
Expand Down Expand Up @@ -36,7 +36,7 @@ export const FundCardAmountInput = ({

const throttledFetchExchangeRate = useThrottle(
fetchExchangeRate,
THROTTLE_DELAY,
THROTTLE_DELAY_MS,
);

/**
Expand Down
1 change: 0 additions & 1 deletion src/fund/hooks/useOnrampExhangeRate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export const useOnrampExchangeRate = ({
}) => {
const fetchExchangeRate = useCallback(async () => {
try {
console.log('fetching exchange rate');
const quote = await fetchOnrampQuote({
purchaseCurrency: asset,
paymentCurrency: currency,
Expand Down

0 comments on commit 56454fd

Please sign in to comment.