@riocrypto/common 1.0.2041 → 1.0.2042
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -70,6 +70,10 @@ const humanizeOrderStatus = (status) => {
|
|
|
70
70
|
return "US order failed";
|
|
71
71
|
case order_status_1.OrderStatus.AwaitingBridgeRouting:
|
|
72
72
|
return "Processing";
|
|
73
|
+
case order_status_1.OrderStatus.AwaitingAsyncPayment:
|
|
74
|
+
return "Waiting for payment (deferred)";
|
|
75
|
+
case order_status_1.OrderStatus.AwaitingAsyncPayout:
|
|
76
|
+
return "Sending funds";
|
|
73
77
|
case order_status_1.OrderStatus.BridgeOrderRoutingFailed:
|
|
74
78
|
return "US order failed";
|
|
75
79
|
case order_status_1.OrderStatus.BridgeTransferFailed:
|
|
@@ -87,6 +91,9 @@ const humanizeOrderStatus = (status) => {
|
|
|
87
91
|
case order_status_1.OrderStatus.AwaitingOriginOrderCompletion:
|
|
88
92
|
return "Waiting for origin order to complete";
|
|
89
93
|
default:
|
|
94
|
+
if (status.toLowerCase().includes("failed")) {
|
|
95
|
+
return "Failed";
|
|
96
|
+
}
|
|
90
97
|
return "Unknown";
|
|
91
98
|
}
|
|
92
99
|
};
|