diff --git a/explorer/src/components/instruction/vote/VoteDetailsCard.tsx b/explorer/src/components/instruction/vote/VoteDetailsCard.tsx
index d00a711d38..3d30e5e5ea 100644
--- a/explorer/src/components/instruction/vote/VoteDetailsCard.tsx
+++ b/explorer/src/components/instruction/vote/VoteDetailsCard.tsx
@@ -69,12 +69,14 @@ export function VoteDetailsCard(props: {
-
- Timestamp |
-
- {displayTimestamp(info.vote.timestamp * 1000)}
- |
-
+ {info.vote.timestamp && (
+
+ Timestamp |
+
+ {displayTimestamp(info.vote.timestamp * 1000)}
+ |
+
+ )}
Slots |
diff --git a/explorer/src/components/instruction/vote/types.ts b/explorer/src/components/instruction/vote/types.ts
index 6f6054c02a..ae8a23021f 100644
--- a/explorer/src/components/instruction/vote/types.ts
+++ b/explorer/src/components/instruction/vote/types.ts
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-redeclare */
-import { array, number, pick, string, StructType } from "superstruct";
+import { array, number, optional, pick, string, StructType } from "superstruct";
import { Pubkey } from "validators/pubkey";
export type VoteInfo = StructType;
@@ -12,6 +12,6 @@ export const VoteInfo = pick({
vote: pick({
hash: string(),
slots: array(number()),
- timestamp: number(),
+ timestamp: optional(number()),
}),
});
diff --git a/explorer/src/components/transaction/InstructionsSection.tsx b/explorer/src/components/transaction/InstructionsSection.tsx
index 7957257d31..74757b95d6 100644
--- a/explorer/src/components/transaction/InstructionsSection.tsx
+++ b/explorer/src/components/transaction/InstructionsSection.tsx
@@ -34,7 +34,7 @@ import {
useTransactionStatus,
} from "providers/transactions";
import { Cluster, useCluster } from "providers/cluster";
-import { VoteDetailsCard } from "components/instruction/vote/VoteDetailsCard";
+// import { VoteDetailsCard } from "components/instruction/vote/VoteDetailsCard";
import { UpgradeableBpfLoaderDetailsCard } from "components/instruction/upgradeable-bpf-loader/UpgradeableBpfLoaderDetailsCard";
export function InstructionsSection({ signature }: SignatureProps) {
@@ -171,9 +171,8 @@ function renderInstructionCard({
return ;
case "spl-memo":
return ;
- case "vote":
- console.log(props);
- return ;
+ /*case "vote":
+ return ;*/
default:
return ;
}