We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c819b5 commit 852178cCopy full SHA for 852178c
packages/app/src/systems/Transaction/utils/simplifyTransaction.ts
@@ -126,9 +126,14 @@ function getOperationDepth(
126
) {
127
let depth = 0;
128
129
- const receiptIndex = parsedReceipts.findIndex(
130
- (r) => r.data.id === operation.receipts[0].id
+ // biome-ignore lint/suspicious/noExplicitAny: Type mismatch, id is sometimes available.
+ const receiptIndex = parsedReceipts.findIndex((r: any) =>
131
+ operation.receipts?.some(
132
133
+ (operationReceipt: any) => operationReceipt.id === r.data.id
134
+ )
135
);
136
+
137
if (receiptIndex !== -1) {
138
depth = parsedReceipts[receiptIndex].indent;
139
}
0 commit comments