Browse Source
Should not be able to trigger close in `PendingOpen`
Triggering a settlement proposal prior to being `Open` does not make sense.
debug-collab-settlement
scratchy
3 years ago
No known key found for this signature in database
GPG Key ID: 33F49E044A1D606F
1 changed files with
1 additions and
3 deletions
-
taker-frontend/src/components/History.tsx
|
@ -98,9 +98,7 @@ const CfdDetails = ({ cfd }: CfdDetailsProps) => { |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
const disableCloseButton = cfd.state.getGroup() === StateGroupKey.CLOSED |
|
|
const disableCloseButton = cfd.state.getGroup() === StateGroupKey.CLOSED |
|
|
|| [StateKey.OPEN_COMMITTED, StateKey.OUTGOING_SETTLEMENT_PROPOSAL, StateKey.PENDING_CLOSE].includes( |
|
|
|| !(cfd.state.key === StateKey.OPEN); |
|
|
cfd.state.key, |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<HStack bg={useColorModeValue("gray.100", "gray.700")} rounded={5}> |
|
|
<HStack bg={useColorModeValue("gray.100", "gray.700")} rounded={5}> |
|
|