Skip to content

Commit

Permalink
[explorer] - fix epochs count (#10799)
Browse files Browse the repository at this point in the history
## Description 

Fixes the Epochs count in the epochs table footer

## Test Plan 

How did you test the new or updated feature?

---
If your changes are not user-facing and not a breaking change, you can
skip the following section. Otherwise, please indicate what changed, and
then add to the Release Notes section as highlighted during the release
process.

### Type of Change (Check all that apply)

- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes
  • Loading branch information
mamos-mysten authored Apr 12, 2023
1 parent defb2ab commit 7329c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/explorer/src/pages/epochs/EpochsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function EpochsTable({
['epochs', 'current'],
async () => enhancedRpc.getCurrentEpoch(),
{
select: (epoch) => epoch.epoch + 1,
select: (epoch) => Number(epoch.epoch) + 1,
}
);

Expand Down

2 comments on commit 7329c03

@vercel
Copy link

@vercel vercel bot commented on 7329c03 Apr 12, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

explorer-storybook – ./apps/explorer

explorer-storybook-git-main-mysten-labs.vercel.app
explorer-storybook-mysten-labs.vercel.app
explorer-storybook.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 7329c03 Apr 12, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

explorer – ./apps/explorer

explorer-git-main-mysten-labs.vercel.app
explorer-mysten-labs.vercel.app
explorer-topaz.vercel.app
explorer.sui.io

Please sign in to comment.