livepeer / livepeer-monorepo

JavaScript tools and applications that interact with Livepeer's smart contracts and peer-to-peer network
https://livepeer.org
MIT License
166 stars 71 forks source link

set lastRewardRound optional #906

Closed adamsoffer closed 3 years ago

adamsoffer commented 3 years ago

What does this pull request do? Explain your changes. (required) Quering a transcoder with no lastRewardRound currently throws an error since it was recently made a required field. This causes some account pages on the explorer delegated to a transcoder with no lastRewardRound to not load. This PR resolves this issue by setting the lastRewardRound field on the transcoder entity as optional.

vercel[bot] commented 3 years ago

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/63lr551rq
✅ Preview: https://explorer-20-git-as-subgraph-fix.livepeerorg.vercel.app