File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
mithril-explorer/src/app/registrations Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,21 +49,21 @@ export default function Registrations() {
49
49
50
50
useEffect ( ( ) => {
51
51
const aggregator = searchParams . get ( aggregatorSearchParam ) ;
52
- const epoch = Number ( searchParams . get ( "epoch" ) ) ;
52
+ const epoch = searchParams . get ( "epoch" ) ;
53
53
let error = undefined ;
54
54
setAggregator ( aggregator ) ;
55
- setRegistrationEpoch ( epoch ) ;
56
55
57
56
if ( ! checkUrl ( aggregator ) ) {
58
57
error = "invalidAggregatorUrl" ;
59
- } else if ( ! Number . isInteger ( epoch ) ) {
58
+ } else if ( epoch !== "latest" && ! Number . isInteger ( Number ( epoch ) ) ) {
60
59
error = "invalidEpoch" ;
61
60
}
62
61
63
62
if ( error === undefined ) {
64
63
fetchRegistrations ( aggregator , epoch )
65
64
. then ( ( data ) => {
66
65
setSigningEpoch ( data . signing_at ) ;
66
+ setRegistrationEpoch ( data . registered_at ) ;
67
67
setRegistrations ( data . registrations ) ;
68
68
setCharts ( {
69
69
stakesBreakdown : computeStakeShapesDataset ( data . registrations ) ,
You can’t perform that action at this time.
0 commit comments