This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ func (l *TransactionListener) OnTransactionReceived(cb wallet.TransactionCallbac
129
129
log .Errorf ("update funding for sale (%s): %s" , orderId , err )
130
130
}
131
131
// This is a dispute payout. We should set the order state.
132
- if state == pb . OrderState_DECIDED && len (records ) > 0 && fundsReleased {
132
+ if len (records ) > 0 && fundsReleased {
133
133
if contract .DisputeAcceptance == nil && contract != nil && contract .BuyerOrder != nil && contract .BuyerOrder .BuyerID != nil {
134
134
accept := new (pb.DisputeAcceptance )
135
135
ts , _ := ptypes .TimestampProto (time .Now ())
@@ -169,7 +169,7 @@ func (l *TransactionListener) OnTransactionReceived(cb wallet.TransactionCallbac
169
169
if err != nil {
170
170
log .Errorf ("update funding for purchase (%s): %s" , orderId , err )
171
171
}
172
- if state == pb . OrderState_DECIDED && len (records ) > 0 && fundsReleased {
172
+ if len (records ) > 0 && fundsReleased {
173
173
if contract .DisputeAcceptance == nil && contract != nil && len (contract .VendorListings ) > 0 && contract .VendorListings [0 ].VendorID != nil {
174
174
accept := new (pb.DisputeAcceptance )
175
175
ts , _ := ptypes .TimestampProto (time .Now ())
You can’t perform that action at this time.
0 commit comments