Skip to content

Commit

Permalink
fix: pinned address is matched by brandName
Browse files Browse the repository at this point in the history
  • Loading branch information
heisenberg-2077 committed Dec 16, 2024
1 parent 303dee2 commit bc6dfb5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/mobile/src/screens/Address/AddressDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,12 @@ export const AddressInfo = (props: AddressInfoProps) => {
const { pinAddresses, togglePinAddressAsync } = usePinAddresses();
const pinned = useMemo(
() =>
pinAddresses.some(e =>
addressUtils.isSameAddress(e.address, account.address),
pinAddresses.some(
e =>
addressUtils.isSameAddress(e.address, account.address) &&
e.brandName === account.brandName,
),
[account.address, pinAddresses],
[account, pinAddresses],
);

const setPinned = useCallback(
Expand Down

0 comments on commit bc6dfb5

Please sign in to comment.