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

Change token name for approval and disable approval when the balance is too low #129

Merged
merged 3 commits into from
Nov 14, 2023

Conversation

alexkeating
Copy link
Collaborator

@alexkeating alexkeating commented Nov 13, 2023

Description

  • Change token approval to specify the correct token
  • Disable approve button when balance is too low

Copy link

netlify bot commented Nov 13, 2023

Deploy Preview for l2-flexible-voting ready!

Name Link
🔨 Latest commit 1f43816
🔍 Latest deploy log https://app.netlify.com/sites/l2-flexible-voting/deploys/65536884788b100008e8617d
😎 Deploy Preview https://deploy-preview-129--l2-flexible-voting.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@alexkeating alexkeating changed the title Change token name for approval Change token name for approval and disable approval when the balance is too low Nov 13, 2023
pages/[id]/bridge.tsx Outdated Show resolved Hide resolved
@@ -68,6 +68,7 @@ const Bridge = () => {
});

const needsAllowanceL1 = (allowanceL1 || 0) < rawAmount;
const isSufficientBalance = (source.token?.value || 0) >= rawAmount;
Copy link
Collaborator

Choose a reason for hiding this comment

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

[arbitrary place to leave comment]

functionality currently not working when i have 0 balance. Asks me to set approval, no error displayed (although, red error icon displays in input box)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@alexkeating alexkeating force-pushed the chore/change-approval-name branch from 66f2302 to 69fa5e8 Compare November 14, 2023 12:20
Copy link
Collaborator

@wildmolasses wildmolasses left a comment

Choose a reason for hiding this comment

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

lgtm

@alexkeating alexkeating merged commit 1be249a into main Nov 14, 2023
5 checks passed
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