Skip to content

Commit

Permalink
Delegate wallet display on alias chain (#1574)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek-01k authored May 24, 2024
1 parent 9660c4a commit 5dfc3a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ChannelDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default function ChannelDetails({ isChannelExpired, setIsChannelExpired,
(async () => {
try {
const channelAddressinCAIP = convertAddressToAddrCaip(account, chainId);
const channelDelegates = await userPushSDKInstance.channel.delegate.get(channelAddressinCAIP);
const channelDelegates = await userPushSDKInstance.channel.delegate.get({ channel: channelAddressinCAIP });
if (channelDelegates) {
const delegateeList = channelDelegates.map((delegate) => delegate);
delegateeList.unshift(account);
Expand All @@ -152,7 +152,7 @@ export default function ChannelDetails({ isChannelExpired, setIsChannelExpired,
}
})();
}
}, [account]);
}, [account, chainId]);

const removeDelegate = async (walletAddress) => {
let userPushInstance = userPushSDKInstance;
Expand Down

0 comments on commit 5dfc3a6

Please sign in to comment.