@rabbitio/ui-kit 1.0.0-beta.21 → 1.0.0-beta.22
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.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +1 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.module.js +1 -1
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/swaps-lib/external-apis/swapspaceSwapProvider.js +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -3100,7 +3100,7 @@ class SwapspaceSwapProvider extends SwapProvider {
|
|
|
3100
3100
|
}
|
|
3101
3101
|
const toUtcTimestamp = timeStr => Date.parse(timeStr.match(/.+[Zz]$/) ? timeStr : `${timeStr}Z`);
|
|
3102
3102
|
const expiresAt = toUtcTimestamp(swap.timestamps.expiresAt);
|
|
3103
|
-
const isExpiredByTime = expiresAt
|
|
3103
|
+
const isExpiredByTime = expiresAt < Date.now();
|
|
3104
3104
|
const status = this._mapSwapspaceStatusToRabbitStatus(swap.status, isExpiredByTime);
|
|
3105
3105
|
const toDigits = status === SwapProvider.SWAP_STATUSES.REFUNDED ? fromCoin.digits : toCoin.digits;
|
|
3106
3106
|
const addressToSendCoinsToSwapspace = swap.from.address;
|