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
parent
commit
d49e2efa83
No known key found for this signature in database GPG Key ID: 33F49E044A1D606F
  1. 4
      taker-frontend/src/components/History.tsx

4
taker-frontend/src/components/History.tsx

@ -98,9 +98,7 @@ const CfdDetails = ({ cfd }: CfdDetailsProps) => {
});
const disableCloseButton = cfd.state.getGroup() === StateGroupKey.CLOSED
|| [StateKey.OPEN_COMMITTED, StateKey.OUTGOING_SETTLEMENT_PROPOSAL, StateKey.PENDING_CLOSE].includes(
cfd.state.key,
);
|| !(cfd.state.key === StateKey.OPEN);
return (
<HStack bg={useColorModeValue("gray.100", "gray.700")} rounded={5}>

Loading…
Cancel
Save