Skip to content

Commit 66ba33d

Browse files
authored
fix: fix notification toast pending (#1894)
1 parent 024ed2d commit 66ba33d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

apps/namadillo/src/atoms/notifications/functions.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ export const createNotificationId = (
1111
if (Array.isArray(data)) {
1212
return data
1313
.map((tx) => {
14-
if ("innerTxHashes" in tx && Array.isArray(tx.innerTxHashes)) {
14+
if (tx.hash) return tx.hash;
15+
else if ("innerTxHashes" in tx && Array.isArray(tx.innerTxHashes))
1516
return tx.innerTxHashes.join(notificationIdSeparator);
16-
} else {
17-
return tx.hash;
18-
}
1917
})
2018
.join(notificationIdSeparator);
2119
}

0 commit comments

Comments
 (0)