Skip to content

Commit

Permalink
fixup! fix(suite): subscribe to solana blocks in coinmarket form
Browse files Browse the repository at this point in the history
  • Loading branch information
martykan committed Jan 23, 2025
1 parent 305cbe2 commit a4c82c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ import { useCoinmarketFiatValues } from 'src/hooks/wallet/coinmarket/form/common
import type { CryptoAmountLimitProps } from 'src/utils/suite/validation';
import { useCoinmarketExchangeQuotesFilter } from 'src/hooks/wallet/coinmarket/form/common/useCoinmarketExchangeQuotesFilter';
import { useCoinmarketPreviousRoute } from 'src/hooks/wallet/coinmarket/form/common/useCoinmarketPreviousRoute';
import { useSolanaSubscribeBlocks } from 'src/hooks/wallet/form/useSolanaSubscribeBlocks';

import { useCoinmarketInitializer } from './common/useCoinmarketInitializer';
import { useSolanaSubscribeBlocks } from '../../form/useSolanaSubscribeBlocks';

export const useCoinmarketExchangeForm = ({
selectedAccount,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import { useCoinmarketAccount } from 'src/hooks/wallet/coinmarket/form/common/us
import { useCoinmarketInfo } from 'src/hooks/wallet/coinmarket/useCoinmarketInfo';
import type { AmountLimitProps } from 'src/utils/suite/validation';
import { useCoinmarketPreviousRoute } from 'src/hooks/wallet/coinmarket/form/common/useCoinmarketPreviousRoute';
import { useSolanaSubscribeBlocks } from 'src/hooks/wallet/form/useSolanaSubscribeBlocks';

import { useCoinmarketInitializer } from './common/useCoinmarketInitializer';

Expand Down Expand Up @@ -657,6 +658,9 @@ export const useCoinmarketSellForm = ({
};
}, []);

// Subscribe to blocks for Solana, since they are not fetched globally
useSolanaSubscribeBlocks(account);

return {
type,
form: {
Expand Down

0 comments on commit a4c82c4

Please sign in to comment.