Skip to content

Commit

Permalink
eslint disables for alpha testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mchoun committed May 7, 2024
1 parent f34f495 commit 27c8fed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/three-domain-secure/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,21 @@ export function getThreeDomainSecureComponent(): TDSComponent {
decorate: ({ props, value, onError }) => {
return (err, result) => {
const isCardFieldFlow = props?.userType === "UNBRANDED_GUEST";
// eslint-disable-next-line no-console
console.log("Seb userType", { userType: props?.userType });
// eslint-disable-next-line no-console
console.log("Seb cardFieldFlow", { isCardFieldFlow });
// HostedFields ONLY rejects when the err object is not null. The below implementation ensures that CardFields follows the same pattern.

const hasError = isCardFieldFlow
? err
: // $FlowFixMe[incompatible-use]
err || result?.success === false;
// eslint-disable-next-line no-console
console.log("Seb err", { err });
// eslint-disable-next-line no-console
console.log("Seb result", { result });
// eslint-disable-next-line no-console
console.log("Seb hasError", { hasError });
if (hasError) {
return onError(err);
Expand Down

0 comments on commit 27c8fed

Please sign in to comment.