Skip to content

Commit 50bc5df

Browse files
Frontend - Correcting epoch progress in Won Slots (#824)
1 parent af2a3f6 commit 50bc5df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/app/features/block-production/won-slots/cards/block-production-won-slots-cards.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class BlockProductionWonSlotsCardsComponent extends StoreDispatcher imple
4040

4141
const epochEndTime = this.addMinutesToTimestamp(epoch.currentTime / ONE_BILLION, (epoch.end - epoch.currentGlobalSlot) * 3);
4242
this.card5.endIn = getTimeDiff(epochEndTime * ONE_THOUSAND).diff;
43-
this.card5.epochProgress = Math.floor(epoch.currentGlobalSlot / epoch.end * 100) + '%';
43+
this.card5.epochProgress = Math.floor((epoch.currentGlobalSlot - epoch.start) / (epoch.end - epoch.start) * 100) + '%';
4444

4545
this.detect();
4646
}, filter(Boolean));

0 commit comments

Comments
 (0)