Skip to content

Commit

Permalink
Merge pull request #101 from availproject/ghali/fix-null-links
Browse files Browse the repository at this point in the history
fix broken links
  • Loading branch information
Leouarz authored Feb 28, 2025
2 parents 4655bf2 + 678d6b6 commit 478fc0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-components/src/Status/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function renderItem ({ error, extrinsic, id, removeItem, result, rpc, status }:
<div className='status'>
{error ? (error.message || error.toString()) : status}
</div>
{blockNumber !== undefined && <div className='status'>
{blockNumber !== undefined && blockNumber !== null && <div className='status'>
<a
href={`/#/explorer/query/${blockNumber}`}
rel='noreferrer'
Expand Down
2 changes: 1 addition & 1 deletion packages/react-hooks/src/ctx/Queue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export function QueueCtxRoot ({ children }: Props): React.ReactElement<Props> {

queueAction(extractEvents(result));

if (STATUS_COMPLETE.includes(status) && result?.blockNumber === undefined) {
if (STATUS_COMPLETE.includes(status) && result?.blockNumber === undefined && result?.blockNumber !== null) {
setTimeout((): void => {
const item = txRef.current.find((item) => item.id === id);

Expand Down

0 comments on commit 478fc0b

Please sign in to comment.