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

Don't print "0" when viewing epoch snapshot on first block in an epoch #1581

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

lukaw3d
Copy link
Member

@lukaw3d lukaw3d commented Oct 22, 2024

Before After
Screenshot from 2024-10-18 00-43-30 Screenshot from 2024-10-18 00-45-09

Copy link

github-actions bot commented Oct 22, 2024

Deployed to Cloudflare Pages

Latest commit: cb8a9342206e3a7d4ef66ecb1cc23af444500557
Status:✅ Deploy successful!
Preview URL: https://bb18c228.oasis-explorer.pages.dev
Alias: https://pr-1581.oasis-explorer.pages.dev

When completedBlocksInCurrentEpoch = 0:
- percentageValue = 0
- `{percentageValue && (` evaluates to falsy and prints "0"
@lukaw3d lukaw3d force-pushed the lw/fix-first-block-epoch branch from 78df93a to cb8a934 Compare October 22, 2024 20:55
@lukaw3d lukaw3d enabled auto-merge October 22, 2024 20:56
@lukaw3d lukaw3d merged commit 046aef8 into master Oct 22, 2024
7 checks passed
@lukaw3d lukaw3d deleted the lw/fix-first-block-epoch branch October 22, 2024 20:56
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