Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

add last reward round to an orchestrator's campaign view #720

Merged
merged 3 commits into from
May 28, 2020

Conversation

adamsoffer
Copy link
Collaborator

What does this pull request do? Explain your changes. (required)
This PR adds an O's last reward round to its campaign view and adds an indication whether or not it called reward for the current round. It also fixes a runtime error I noticed caused by Apollo that would occur when navigating from the history view to the campaign view (or any other route for that matter) while in the middle of loading more history results.

Does this pull request close any open issues?
Fixes #538

Screenshots (optional):
Screen Shot 2020-05-15 at 10 31 31 AM

This commit wraps the `fetchMore` call in a try catch to avoid the runtime error thrown by apollo when navigating from the history view to the campaign view or any other route for that matter.
apollographql/apollo-client#4114
@vercel
Copy link

vercel bot commented May 15, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/livepeerorg/explorer-20/1yyfyzpno
✅ Preview: https://explorer-20-git-as-last-reward-round.livepeerorg.now.sh

Copy link
Member

@yondonfu yondonfu left a comment

Choose a reason for hiding this comment

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

LGTM! :shipit:

@adamsoffer adamsoffer merged commit 552df86 into master May 28, 2020
@adamsoffer adamsoffer deleted the as/last-reward-round branch May 28, 2020 13:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

explorer: add indication that an O has called reward in current round
2 participants