Skip to content

Commit

Permalink
fix: use correct url for getNameForAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
hai-ko committed Oct 31, 2023
1 parent 99a5736 commit a0f3d34
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/messenger-widget/src/components/SignIn/bl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -649,8 +649,10 @@ async function connectOffchainAccount(connection: Connection, address: string) {
*/

const ensName =
(await getNameForAddress(address, connection.defaultServiceUrl)) ??
getAliasForAddress(address);
(await getNameForAddress(
address,
process.env.REACT_APP_RESOLVER_BACKEND as string,
)) ?? getAliasForAddress(address);

//We're trying to get the profile from the delivery service
const profile = await getUserProfile(connection.provider!, ensName);
Expand Down

0 comments on commit a0f3d34

Please sign in to comment.