Skip to content

Commit

Permalink
temporary console logs for alpha release test
Browse files Browse the repository at this point in the history
  • Loading branch information
mchoun committed May 7, 2024
1 parent 2e79755 commit 8aedc37
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/three-domain-secure/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,17 @@ export function getThreeDomainSecureComponent(): TDSComponent {
decorate: ({ props, value, onError }) => {
return (err, result) => {
const isCardFieldFlow = props?.userType === "UNBRANDED_GUEST";

console.log("Seb userType", { userType: props?.userType });

Check failure on line 121 in src/three-domain-secure/component.jsx

View workflow job for this annotation

GitHub Actions / main

Unexpected console statement
console.log("Seb cardFieldFlow", { isCardFieldFlow });

Check failure on line 122 in src/three-domain-secure/component.jsx

View workflow job for this annotation

GitHub Actions / main

Unexpected console statement
// 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;

console.log("Seb err", { err });

Check failure on line 129 in src/three-domain-secure/component.jsx

View workflow job for this annotation

GitHub Actions / main

Unexpected console statement
console.log("Seb result", { result });

Check failure on line 130 in src/three-domain-secure/component.jsx

View workflow job for this annotation

GitHub Actions / main

Unexpected console statement
console.log("Seb hasError", { hasError });

Check failure on line 131 in src/three-domain-secure/component.jsx

View workflow job for this annotation

GitHub Actions / main

Unexpected console statement
if (hasError) {
return onError(err);
}
Expand Down

0 comments on commit 8aedc37

Please sign in to comment.