Skip to content

Commit 8c9cdf1

Browse files
committed
FIX: Error while loading val stats on gnosis
1 parent 8d971ae commit 8c9cdf1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

launcher/src/composables/validators.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,9 @@ export async function useUpdateValidatorStats() {
177177
if (key.network === "gnosis") {
178178
dateActive.setMilliseconds(dateActive.getMilliseconds() - (latestEpoch - activationEpoch) * 80000);
179179
dateExit =
180-
exitEpoch > latestEpoch ? null : dateExit.setMilliseconds(dateExit.getMilliseconds() - (latestEpoch - exitEpoch) * 80000);
180+
exitEpoch > latestEpoch
181+
? null
182+
: new Date(dateExit.setMilliseconds(dateExit.getMilliseconds() - (latestEpoch - exitEpoch) * 80000));
181183
dateWithdrawable =
182184
withdrawableEpoch > latestEpoch
183185
? null

0 commit comments

Comments
 (0)