File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
src/components/AcceptOfferForm Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -78,18 +78,10 @@ const AcceptOfferForm = ({
78
78
return
79
79
}
80
80
81
- let newActions : Action [ ] = [
82
- {
83
- name : 'Accepting offer...' ,
84
- id : 'acceptOffer' ,
85
- action : onAcceptOffer ,
86
- param : undefined ,
87
- } ,
88
- ]
81
+ let newActions : Action [ ] = [ ]
89
82
90
83
if ( listing ) {
91
84
newActions = [
92
- ...newActions ,
93
85
{
94
86
name : 'Cancel previous listing...' ,
95
87
id : 'cancelListing' ,
@@ -99,6 +91,16 @@ const AcceptOfferForm = ({
99
91
]
100
92
}
101
93
94
+ newActions = [
95
+ ...newActions ,
96
+ {
97
+ name : 'Accepting offer...' ,
98
+ id : 'acceptOffer' ,
99
+ action : onAcceptOffer ,
100
+ param : undefined ,
101
+ } ,
102
+ ]
103
+
102
104
await runActions ( newActions , {
103
105
onActionSuccess : async ( ) => {
104
106
toast . success ( 'The transaction was confirmed.' )
You can’t perform that action at this time.
0 commit comments