Skip to content

Commit

Permalink
Fix broken snapshot link
Browse files Browse the repository at this point in the history
  • Loading branch information
DarksightKellar committed Apr 15, 2024
1 parent 57cc68f commit 281283a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/ui/badges/Snapshot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ interface Props extends ButtonProps {
}

export default function Snapshot({ snapshotURL, mt }: Props) {
const url = snapshotURL.includes('testnet') ? snapshotURL : `https://snapshot.org/#${snapshotURL}`;
return (
<Button
href={snapshotURL}
href={url}
as={Link}
target="_blank"
variant="secondary"
Expand Down

0 comments on commit 281283a

Please sign in to comment.