Skip to content

Commit

Permalink
fix: adjust local storage key per profile id
Browse files Browse the repository at this point in the history
  • Loading branch information
patricio0312rev committed Nov 14, 2024
1 parent a481e1b commit ad3a95b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const ContactListItemMobile: React.VFC<Properties> = ({
[availableNetworks, onSend],
);

const { isExpanded, handleHeaderClick } = useAccordion(`contact_list_mobile_${contact.id()}`);
const { isExpanded, handleHeaderClick } = useAccordion(`${profile.id()}_contact_list_mobile_${contact.id()}`);

return (
<AccordionWrapper>
Expand Down
2 changes: 1 addition & 1 deletion src/domains/setting/pages/Servers/blocks/CustomPeers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ const CustomPeersPeer: React.VFC<{

const { isXs } = useBreakpoint();

const { isExpanded, handleHeaderClick } = useAccordion("custom_peers");
const { isExpanded, handleHeaderClick } = useAccordion(`${profile.id()}_custom_peers`);

if (isXs) {
return (
Expand Down

0 comments on commit ad3a95b

Please sign in to comment.