Skip to content

Commit

Permalink
Fix the block link opening past elections (#4614)
Browse files Browse the repository at this point in the history
* update link fixed

* update
  • Loading branch information
chrlschwb authored Nov 3, 2023
1 parent 6abfbb9 commit 2ba4f42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/ui/src/common/components/BlockTime/BlockInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const BlockInfo = ({ block, lessInfo, inline }: BlockInfoProp) => {
const [endpoints] = useNetworkEndpoints()
return (
<BlockLink
onClick={(evt) => evt.stopPropagation()}
href={`https://polkadot.js.org/apps/?rpc=${endpoints.nodeRpcEndpoint}/ws-rpc#/explorer/query/${block.number}`}
>
<BlockInfoContainer lessInfo={lessInfo} inline={inline}>
Expand Down

2 comments on commit 2ba4f42

@vercel
Copy link

@vercel vercel bot commented on 2ba4f42 Nov 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 2ba4f42 Nov 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

pioneer-2 – ./

pioneer-2-joystream.vercel.app
pioneer-2.vercel.app
pioneer-2-git-dev-joystream.vercel.app

Please sign in to comment.