Skip to content

Commit

Permalink
Merge pull request #44 from aizad-deriv/lubega/mt5-reset-password-son…
Browse files Browse the repository at this point in the history
…arcloud-fix
  • Loading branch information
aizad-deriv committed Jan 18, 2024
2 parents df7afe4 + 8fa90df commit d335c84
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/wallets/src/features/cfd/ResetMT5PasswordHandler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@ import { WalletsResetMT5Password } from '../../components';
import { useModal } from '../../components/ModalProvider';
import { getActionFromUrl } from '../../helpers/urls';
import { TPlatforms } from '../../types';
import { PlatformDetails } from './constants';

const ResetMT5PasswordHandler = () => {
const { show } = useModal();
const [password, setPassword] = useState('');
const resetTradingPlatformActionParams = getActionFromUrl();

const platformMapping: Record<string, Exclude<TPlatforms.All, 'ctrader'>> = {
trading_platform_dxtrade_password_reset: 'dxtrade',
trading_platform_investor_password_reset: 'mt5',
trading_platform_mt5_password_reset: 'mt5',
trading_platform_dxtrade_password_reset: PlatformDetails?.dxtrade?.platform,
trading_platform_investor_password_reset: PlatformDetails?.mt5?.platform,
trading_platform_mt5_password_reset: PlatformDetails?.mt5?.platform,
};

useEffect(() => {
Expand Down

0 comments on commit d335c84

Please sign in to comment.