Skip to content

Commit

Permalink
chore: console
Browse files Browse the repository at this point in the history
  • Loading branch information
hasan-deriv committed Apr 12, 2024
1 parent 95ce7c0 commit d1b9940
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 7 additions & 2 deletions packages/cfd/src/Containers/mt5-mobile-redirect-option.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Icon, Text } from '@deriv/components';
import { Localize } from '@deriv/translations';
import { DEEP_LINK, WEBTRADER_URL, getMobileAppInstallerURL } from '../Helpers/constants';
import './mt5-mobile-redirect-option.scss';
import { isSafariBrowser } from '@deriv/shared';
import { isSafariBrowser, mobileOSDetectAsync } from '@deriv/shared';

type TMT5MobileRedirectOptionProps = {
mt5_trade_account: DetailsOfEachMT5Loginid;
Expand All @@ -28,7 +28,12 @@ const MT5MobileRedirectOption = ({ mt5_trade_account }: TMT5MobileRedirectOption
};

useEffect(() => {
mobileURLSet();
async function fetchData() {
const os = await mobileOSDetectAsync();
// eslint-disable-next-line no-console
console.log('==>', os);
}
fetchData();
}, []);

return (
Expand Down
3 changes: 0 additions & 3 deletions packages/cfd/src/Helpers/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,6 @@ const validatePassword = (password: string): string | undefined => {
const getMobileAppInstallerURL = async ({ mt5_trade_account }: { mt5_trade_account: TDetailsOfEachMT5Loginid }) => {
const os = await mobileOSDetectAsync();

// eslint-disable-next-line no-console
console.log('==>', os);

if (os === 'iOS') {
return mt5_trade_account?.white_label_links?.ios;
} else if (os === 'huawei') {
Expand Down

0 comments on commit d1b9940

Please sign in to comment.