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

fix: clean SwapProps and standardize event handler logic #177

Merged
merged 2 commits into from
Aug 30, 2022
Merged

Conversation

zzmp
Copy link
Contributor

@zzmp zzmp commented Aug 29, 2022

No description provided.

@zzmp zzmp requested a review from JFrankfurt August 29, 2022 21:35
@vercel
Copy link

vercel bot commented Aug 29, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
widgets ✅ Ready (Inspect) Visit Preview Aug 29, 2022 at 9:35PM (UTC)

@vercel vercel bot temporarily deployed to Preview August 29, 2022 21:35 Inactive
Comment on lines +13 to +16
} catch {
return false
}
return true
Copy link
Contributor

Choose a reason for hiding this comment

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

can replace these returns with a single finally block

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think a finally block will always run, so it overrides the returned value from within the try-catch block.

export interface SwapProps
extends BrandingSettings,
FeeOptions,
SwapController,
Copy link
Contributor

Choose a reason for hiding this comment

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

is the swapcontroller removal here intentional? (sry if this should be obvious)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it should only need supplied through the 'value' prop now

Copy link
Contributor

@JFrankfurt JFrankfurt left a comment

Choose a reason for hiding this comment

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

one question and a nit--lgtm

@JFrankfurt JFrankfurt merged commit 0d74a8c into main Aug 30, 2022
@zzmp zzmp deleted the cleaner branch August 30, 2022 16:50
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