Skip to content

Commit 2e79755

Browse files
committed
handle missing props use case
1 parent bf2a848 commit 2e79755

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/three-domain-secure/component.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export function getThreeDomainSecureComponent(): TDSComponent {
117117
alias: "onContingencyResult",
118118
decorate: ({ props, value, onError }) => {
119119
return (err, result) => {
120-
const isCardFieldFlow = props.userType === "UNBRANDED_GUEST";
120+
const isCardFieldFlow = props?.userType === "UNBRANDED_GUEST";
121121

122122
// HostedFields ONLY rejects when the err object is not null. The below implementation ensures that CardFields follows the same pattern.
123123

0 commit comments

Comments
 (0)