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

fetch rewards on every submit to avoid stale values #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TragedyHasStruck
Copy link

Attempt at fixing "TOTAL REWARDS" -> ".... BPRO" being stale if page remains open between submits.

Appears to happen due to useEffect that fetches reward values only being called on initialization. Change fetches reward values on every submit to not only have correct dollar value, but also BPRO amount.

@vercel
Copy link

vercel bot commented Jul 9, 2021

Someone is attempting to deploy a commit to a Personal Account owned by @vipineth on Vercel.

@vipineth first needs to authorize it.

Repository owner deleted a comment from leojin Feb 23, 2024
@github-staff github-staff deleted a comment Apr 26, 2024
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.

1 participant