mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-05-03 07:14:51 -04:00
feat(gui): Only display alert on history page if funds have been locked (#66)
This commit is contained in:
parent
5411c05d27
commit
ba4a9bd9c6
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ import { GetSwapInfoResponse } from "models/tauriModel";
|
||||||
import {
|
import {
|
||||||
BobStateName,
|
BobStateName,
|
||||||
GetSwapInfoResponseExt,
|
GetSwapInfoResponseExt,
|
||||||
|
isGetSwapInfoResponseRunningSwap,
|
||||||
TimelockCancel,
|
TimelockCancel,
|
||||||
TimelockNone,
|
TimelockNone,
|
||||||
} from "models/tauriModelExt";
|
} from "models/tauriModelExt";
|
||||||
|
@ -206,7 +207,7 @@ export default function SwapStatusAlert({
|
||||||
// If the swap is completed, there is no need to display the alert
|
// If the swap is completed, there is no need to display the alert
|
||||||
// TODO: Here we should also check if the swap is in a state where any funds can be lost
|
// TODO: Here we should also check if the swap is in a state where any funds can be lost
|
||||||
// TODO: If the no Bitcoin have been locked yet, we can safely ignore the swap
|
// TODO: If the no Bitcoin have been locked yet, we can safely ignore the swap
|
||||||
if (swap.completed) {
|
if (!isGetSwapInfoResponseRunningSwap(swap)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue