diff --git a/explorer/src/pages/BlockDetailsPage.tsx b/explorer/src/pages/BlockDetailsPage.tsx
index b106109ede..b55652a964 100644
--- a/explorer/src/pages/BlockDetailsPage.tsx
+++ b/explorer/src/pages/BlockDetailsPage.tsx
@@ -3,13 +3,17 @@ import React from "react";
import { ErrorCard } from "components/common/ErrorCard";
import { BlockOverviewCard } from "components/block/BlockOverviewCard";
+// IE11 doesn't support Number.MAX_SAFE_INTEGER
+const MAX_SAFE_INTEGER = 9007199254740991;
+
type Props = { slot: string };
export function BlockDetailsPage({ slot }: Props) {
+ const slotNumber = Number(slot);
let output = ;
- if (!isNaN(Number(slot))) {
- output = ;
+ if (!isNaN(slotNumber) && slotNumber < MAX_SAFE_INTEGER) {
+ output = ;
}
return (