Skip to content

Fix provider icon on wallet list#451

Merged
germanurrus merged 7 commits intoDapperCollectives:mainfrom
chasefleming:pr-1
Sep 14, 2022
Merged

Fix provider icon on wallet list#451
germanurrus merged 7 commits intoDapperCollectives:mainfrom
chasefleming:pr-1

Conversation

@chasefleming
Copy link
Copy Markdown
Contributor

@chasefleming chasefleming commented Sep 13, 2022

Discovery had an issue that was returning relative paths. Now you can just use provider.icon as the src.

Addresses: #452

Discovery had a bug that was returning relative paths. Now you can just use provider.icon as the src.
@chasefleming chasefleming changed the title Fix provider icon on wallet list CAS 452 - Fix provider icon on wallet list Sep 13, 2022
}
return `https://fcl-discovery.onflow.org${provider.icon}`;
};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we still need this function when REACT_APP_FLOW_ENV=emulator because icons are not returning absolute paths on provider.icon

);
closeModal();
},
icon: getWalletIcon(service.provider),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe doing this:

 icon: IS_LOCAL_DEV
            ? getWalletIcon(service.provider)
            : service.provider.icon,
            

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok updated @germanurrus . Just out of curiosity, why is it like that on local dev instead of just using the Discovery API with testnet services?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are developing in local dev using emulator for connecting wallets, this way we can deploy contracts to a controlled env that gives us more flexibility to develop

@germanurrus germanurrus changed the title CAS 452 - Fix provider icon on wallet list Fix provider icon on wallet list Sep 14, 2022
@germanurrus germanurrus merged commit 99f70ea into DapperCollectives:main Sep 14, 2022
@chasefleming chasefleming deleted the pr-1 branch September 14, 2022 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants