Skip to content

Commit

Permalink
Applied suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nebyt committed Nov 27, 2024
1 parent c5dd2df commit cacad0c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ import WalletReceiveRevamp from '../../components/wallet/WalletReceiveRevamp';
import UnmangleTxDialogContainer from '../transfer/UnmangleTxDialogContainer';
import StandardHeaderRevamp from '../../components/wallet/receive/StandardHeaderRevamp';
import { maybe } from '../../coreUtils';
import { ROUTES } from '../../routes-config';

type Props = {|
...StoresAndActionsProps,
Expand Down Expand Up @@ -120,7 +119,7 @@ class WalletReceivePage extends Component<AllProps> {
};

const isHwWallet = publicDeriver.type !== 'mnemonic';
const isAddressBook = this.props.stores.router.location.pathname.startsWith(`${ROUTES.WALLETS.RECEIVE.ROOT}/addressBook/all`)
const isAddressBook = addressTypeStore.meta.name.group === AddressGroupTypes.addressBook;

const onCopyAddressTooltip = (address, elementId) => {
if (!uiNotifications.isOpen(elementId)) {
Expand Down Expand Up @@ -195,7 +194,7 @@ class WalletReceivePage extends Component<AllProps> {
/>
);
}
if (addressTypeStore.meta.name.group === AddressGroupTypes.addressBook) {
if (isAddressBook) {
return null;
}
if (addressTypeStore.meta.name.subgroup === AddressSubgroup.all) {
Expand Down

0 comments on commit cacad0c

Please sign in to comment.