Skip to content

Commit b5aee3b

Browse files
committed
conditionally show tx alert
1 parent 540f37d commit b5aee3b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/alerts/TxConfirmedAlert.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface TxConfirmedAlertProps extends AlertProps {
88
}
99

1010
export const TxConfirmedAlert: React.FC<TxConfirmedAlertProps> = ({ hash, ...props }) => {
11-
return (
11+
return hash ? (
1212
<Alert severity="success" {...props}>
1313
<AlertTitle>Transaction successfully confirmed!</AlertTitle>
1414
See your local
@@ -18,5 +18,5 @@ export const TxConfirmedAlert: React.FC<TxConfirmedAlertProps> = ({ hash, ...pro
1818
through our Blockchain Explorer.
1919
{' '}
2020
</Alert>
21-
)
21+
) : null
2222
}

0 commit comments

Comments
 (0)