Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: added purchase tokens button #148

Open
wants to merge 23 commits into
base: dev
Choose a base branch
from
Open

chore: added purchase tokens button #148

wants to merge 23 commits into from

Conversation

dafuga
Copy link
Contributor

@dafuga dafuga commented Sep 28, 2022

No description provided.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Sep 28, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: e260869
Status: ✅  Deploy successful!
Preview URL: https://d1e0eff2.wallet-2tl.pages.dev
Branch Preview URL: https://banxa-integration.wallet-2tl.pages.dev

View logs

@dafuga dafuga marked this pull request as ready for review October 26, 2022 20:32
whalesplainerTokenOrder = await whalesplainerTokenOrderResponse.json()

console.log({whalesplainerTokenOrder})
} catch (error) {
Copy link
Member

Choose a reason for hiding this comment

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

If this throws the toast below will fire as well, possibly replacing this error message with a generic one about popups.

Refactor this so that error handling only needs to happen once, preferably at the callsite and not side-effecting with a toast


whalesplainerTokenOrder = await whalesplainerTokenOrderResponse.json()

console.log({whalesplainerTokenOrder})
Copy link
Member

Choose a reason for hiding this comment

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

Remove debug logging


const tokenOrderUrl = `${creationServiceUrl}/api/tokens/order`

export const openPopupForAccount = async (accountName: Name | undefined): Promise<void> => {
Copy link
Member

Choose a reason for hiding this comment

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

No need for this to accept undefined, make this a burden of the caller

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.

5 participants