Skip to content

Commit b4d1b07

Browse files
committed
fix Fer's feedback
1 parent 1d7d51f commit b4d1b07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/toast/TransactionNotificationProvider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ export const TransactionNotificationProvider: FC<PropsWithChildren> = ({ childre
9191
})
9292

9393
try {
94-
let replacedTx: ReplacementReturnType
94+
let replacedTx = null as ReplacementReturnType | null
9595
const receipt = await readOnlyClient.waitForTransactionReceipt({
9696
hash,
9797
onReplaced: (replacedTxData) => (replacedTx = replacedTxData),
9898
})
9999

100-
if (replacedTx!) {
100+
if (replacedTx !== null) {
101101
if (['replaced', 'cancelled'].includes(replacedTx.reason)) {
102102
toast.error(
103103
<div>

0 commit comments

Comments
 (0)