mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-03-29 18:48:57 +00:00
check failed state to determine if payment sent or received
This commit is contained in:
parent
6f3ae49b68
commit
79aa214f22
1 changed files with 2 additions and 2 deletions
|
@ -2171,7 +2171,7 @@ public abstract class Trade extends XmrWalletBase implements Tradable, Model {
|
|||
}
|
||||
|
||||
public boolean isPaymentSent() {
|
||||
return getState().getPhase().ordinal() >= Phase.PAYMENT_SENT.ordinal();
|
||||
return getState().getPhase().ordinal() >= Phase.PAYMENT_SENT.ordinal() && getState() != State.BUYER_SEND_FAILED_PAYMENT_SENT_MSG;
|
||||
}
|
||||
|
||||
public boolean hasPaymentReceivedMessage() {
|
||||
|
@ -2189,7 +2189,7 @@ public abstract class Trade extends XmrWalletBase implements Tradable, Model {
|
|||
}
|
||||
|
||||
public boolean isPaymentReceived() {
|
||||
return getState().getPhase().ordinal() >= Phase.PAYMENT_RECEIVED.ordinal();
|
||||
return getState().getPhase().ordinal() >= Phase.PAYMENT_RECEIVED.ordinal() && getState() != State.SELLER_SEND_FAILED_PAYMENT_RECEIVED_MSG;
|
||||
}
|
||||
|
||||
public boolean isPayoutPublished() {
|
||||
|
|
Loading…
Reference in a new issue