Skip to content

Commit

Permalink
feat(checkout): INT-1780 Simplify prop and change validation
Browse files Browse the repository at this point in the history
  • Loading branch information
FranciscoOnt committed Dec 6, 2019
1 parent 145863d commit 22de1c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/payment/paymentMethod/BarclaycardPaymentMethod.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const BarclaycardPaymentMethod: FunctionComponent<BarclaycardPaymentMethodProps>
return <HostedWidgetPaymentMethod
{ ...props }
containerId={ containerId }
hideVerificationFields={ true }
hideVerificationFields
/>;
};

Expand Down
6 changes: 3 additions & 3 deletions src/app/payment/paymentMethod/HostedWidgetPaymentMethod.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ class HostedWidgetPaymentMethod extends Component<
onSelectInstrument={ this.handleSelectInstrument }
onUseNewInstrument={ this.handleUseNewCard }
selectedInstrumentId={ selectedInstrumentId }
validateInstrument={ <CreditCardValidation
shouldShowCardCodeField={ !hideVerificationFields && isInstrumentCardCodeRequiredProp }
shouldShowNumberField={ !hideVerificationFields && shouldShowNumberField }
validateInstrument={ !hideVerificationFields && <CreditCardValidation
shouldShowCardCodeField={ isInstrumentCardCodeRequiredProp }
shouldShowNumberField={ shouldShowNumberField }
/> }
/> }

Expand Down

0 comments on commit 22de1c7

Please sign in to comment.