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

Bond and delegation alerts #698

Merged
merged 13 commits into from Jul 26, 2021
Merged

Bond and delegation alerts #698

merged 13 commits into from Jul 26, 2021

Conversation

fmtabbara
Copy link
Contributor

Display alert on bonding and delegation pages when the user is allocating all of their tokens.

wallet-web/common/helpers.ts Outdated Show resolved Hide resolved
wallet-web/components/bond/BondNodeForm.tsx Show resolved Hide resolved
return !location.trim().includes("physical location of your node")
}

const validateHost = (host: string): boolean => {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not an error on your end, but omission in what I've done - could you check for white spaces at beginning (and end) of the host string? I've noticed people were bonding with for example <SPACE-HERE>1.1.1.1 value. Or maybe just trim it for them.

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've updated this. Hopefully that's what you're after.

wallet-web/hooks/useGetBalance.ts Outdated Show resolved Hide resolved
wallet-web/components/delegate/DelegateForm.tsx Outdated Show resolved Hide resolved
wallet-web/components/bond/BondNodeForm.tsx Outdated Show resolved Hide resolved
@fmtabbara fmtabbara marked this pull request as ready for review July 23, 2021 13:46
@fmtabbara fmtabbara merged commit 3ec92a0 into develop Jul 26, 2021
@fmtabbara fmtabbara deleted the bond_and_delegation_alerts branch July 26, 2021 12:48
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.

None yet

2 participants