Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
fix: removed unnecessary checker as unintended effect of terms (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dudleyneedham authored Feb 15, 2021
1 parent fa7bb2d commit a62d960
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/containers/Tasks/RequestTerms/RequestTerms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import * as Claims from '../../../state/ducks/Claims'
import { ICType } from '../../../types/Ctype'

import './RequestTerms.scss'
import { notifyFailure } from '../../../services/FeedbackService'

export type RequestTermsProps = {
cTypeHash: ICType['cType']['hash'] | null
Expand Down Expand Up @@ -49,16 +48,12 @@ class RequestTerms extends React.Component<RequestTermsProps, State> {
const { selectedClaimEntries } = this.state

if (cTypeHash) {
let claims: IPartialClaim[] = [{ cTypeHash }]
let claims: IPartialClaim[] = cTypeHash ? [{ cTypeHash }] : []

if (selectedClaimEntries && selectedClaimEntries.length) {
claims = selectedClaimEntries.map(
(claimEntry: Claims.Entry) => claimEntry.claim
)
} else {
notifyFailure(
`Cannot resolve due to Corresponding CType Hash: ${cTypeHash} not matching`
)
}

if (this.isValid()) {
Expand Down

0 comments on commit a62d960

Please sign in to comment.