Commit 0a8332b 1 parent 36bb84a commit 0a8332b Copy full SHA for 0a8332b
File tree 1 file changed +8
-2
lines changed
packages/app/src/systems/Transaction/components/TxOperations
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -29,20 +29,26 @@ export function TxOperationsDrawer({ operations }: TxOperationsDrawerProps) {
29
29
current : SimplifiedOperation ,
30
30
next : SimplifiedOperation
31
31
) {
32
+ console . log ( 'previous' , previous ) ;
33
+ console . log ( 'current' , current ) ;
34
+ console . log ( 'next' , next ) ;
32
35
// if next operation is the reverse of the current operation, return 'atob'
33
36
// if previous operation is the reverse of the current operation, return 'btoa'
34
37
// otherwise return null
35
38
if (
36
39
next &&
37
40
next . from . address === current . to . address &&
38
- next . to . address === current . from . address
41
+ next . to . address === current . from . address &&
42
+ ( ! next . metadata ?. identicalOps || next . metadata . identicalOps . size === 0 )
39
43
) {
40
44
return 'atob' ;
41
45
}
42
46
if (
43
47
previous &&
44
48
previous . from . address === current . to . address &&
45
- previous . to . address === current . from . address
49
+ previous . to . address === current . from . address &&
50
+ ( ! previous . metadata ?. identicalOps ||
51
+ previous . metadata . identicalOps . size === 0 )
46
52
) {
47
53
return 'btoa' ;
48
54
}
You can’t perform that action at this time.
0 commit comments