diff --git a/src/components/Header/WalletAccountSwitcher/account-wallet-dropdown.jsx b/src/components/Header/WalletAccountSwitcher/account-wallet-dropdown.jsx index 93ca3bfb9..586ff3b90 100644 --- a/src/components/Header/WalletAccountSwitcher/account-wallet-dropdown.jsx +++ b/src/components/Header/WalletAccountSwitcher/account-wallet-dropdown.jsx @@ -61,7 +61,11 @@ const AccountWalletDropdown = React.forwardRef(({ setIsAccDropdownOpen }, dropdo {translate('Looking for CFDs? Go to Trader\'s hub')} - + wallet_icon diff --git a/src/components/Header/WalletAccountSwitcher/wallet-icon.jsx b/src/components/Header/WalletAccountSwitcher/wallet-icon.jsx index 24baf2193..dbf665c0d 100644 --- a/src/components/Header/WalletAccountSwitcher/wallet-icon.jsx +++ b/src/components/Header/WalletAccountSwitcher/wallet-icon.jsx @@ -10,12 +10,19 @@ const WalletIcon = ({ currency, is_virtual, currency_icon }) => { return wallet_icons.includes(_currency.toLowerCase()); }; + const src_path = + isWalletIcon(currency) && !is_virtual + ? `${wallet_icon_path}${currency_icon}.svg` + : is_virtual + ? `${wallet_icon_path}ic-wallet-deriv-demo-light.svg` + : default_currency_icon_path; + return (
{
- + wallet_icon
} @@ -25,15 +32,7 @@ const WalletIcon = ({ currency, is_virtual, currency_icon }) => { is_virtual ? 'demo' : currency.toLowerCase() }-bg`} > - + wallet_icon
diff --git a/src/components/Header/account-menu.jsx b/src/components/Header/account-menu.jsx index 72e546a32..619978765 100644 --- a/src/components/Header/account-menu.jsx +++ b/src/components/Header/account-menu.jsx @@ -29,7 +29,11 @@ const AccountMenu = ({ is_open }) => { {has_wallet_account ? ( ) : ( - + icon )}
{ icon
); diff --git a/src/components/common/text/text.jsx b/src/components/common/text/text.jsx index c6b3ac60a..b5656cbfd 100644 --- a/src/components/common/text/text.jsx +++ b/src/components/common/text/text.jsx @@ -6,7 +6,7 @@ const isEmptyObject = obj => { let is_empty = true; if (obj && obj instanceof Object) { Object.keys(obj).forEach(key => { - if (Object.prototype.hasOwnProperty.call(obj, key)) is_empty = false; + if (Object.hasOwn(obj, key)) is_empty = false; }); } return is_empty;