Add missing deployment slot check for verifiable build badge (#23032)
This commit is contained in:
parent
1b287f1b59
commit
f67a27eeea
@ -135,8 +135,12 @@ export function UpgradeableProgramSection({
|
|||||||
<CheckingBadge />
|
<CheckingBadge />
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
{verifiableBuilds.map((b) => (
|
{verifiableBuilds.map((b, i) => (
|
||||||
<VerifiedBadge verifiableBuild={b} />
|
<VerifiedBadge
|
||||||
|
key={i}
|
||||||
|
verifiableBuild={b}
|
||||||
|
deploySlot={programData.slot}
|
||||||
|
/>
|
||||||
))}
|
))}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
@ -2,10 +2,12 @@ import { VerifiableBuild } from "utils/program-verification";
|
|||||||
|
|
||||||
export function VerifiedBadge({
|
export function VerifiedBadge({
|
||||||
verifiableBuild,
|
verifiableBuild,
|
||||||
|
deploySlot,
|
||||||
}: {
|
}: {
|
||||||
verifiableBuild: VerifiableBuild;
|
verifiableBuild: VerifiableBuild;
|
||||||
|
deploySlot: number;
|
||||||
}) {
|
}) {
|
||||||
if (verifiableBuild && verifiableBuild.verified_slot) {
|
if (verifiableBuild && verifiableBuild.verified_slot === deploySlot) {
|
||||||
return (
|
return (
|
||||||
<h3 className="mb-0">
|
<h3 className="mb-0">
|
||||||
<a
|
<a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user