Skip to content

Commit

Permalink
fix: zero spread scrolling issue (#16814)
Browse files Browse the repository at this point in the history
  • Loading branch information
lubega-deriv authored Sep 12, 2024
1 parent 87db116 commit 71956aa
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { lazy, useCallback, useEffect, useState } from 'react';
import React, { lazy, Suspense, useCallback, useEffect, useState } from 'react';
import { useActiveWalletAccount, useMT5AccountsList, useTradingPlatformStatus } from '@deriv/api-v2';
import { LabelPairedChevronRightCaptionRegularIcon } from '@deriv/quill-icons';
import { Text } from '@deriv-com/ui';
import { Loader, Text } from '@deriv-com/ui';
import { TradingAccountCard } from '../../../../../components';
import { useModal } from '../../../../../components/ModalProvider';
import { THooks } from '../../../../../types';
Expand Down Expand Up @@ -48,12 +48,14 @@ const AvailableMT5AccountsList: React.FC<TProps> = ({ account }) => {
);
} else if (account.product === PRODUCT.ZEROSPREAD) {
show(
<LazyVerification
onCompletion={() => {
setShowMt5PasswordModal(true);
}}
selectedJurisdiction={account.shortcode}
/>
<Suspense fallback={<Loader />}>
<LazyVerification
onCompletion={() => {
setShowMt5PasswordModal(true);
}}
selectedJurisdiction={account.shortcode}
/>
</Suspense>
);
} else {
show(<JurisdictionModal />);
Expand Down

0 comments on commit 71956aa

Please sign in to comment.