Skip to content

Commit

Permalink
Build
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissrogers committed Jan 29, 2024
1 parent 447c2d0 commit 55d0f9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib-dist/three-d-secure-action.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var ThreeDSecureAction = /*#__PURE__*/function (_React$PureComponent) {
throw new Error('<ThreeDSecureAction> must be within a <RecurlyProvider> tree.');
}
var actionTokenId = props.actionTokenId;
_this._attached = false;
_this._container = /*#__PURE__*/_react["default"].createRef();
_this._risk = _this.context.recurly.Risk();
_this._threeDSecure = _this._risk.ThreeDSecure({
Expand All @@ -49,7 +50,9 @@ var ThreeDSecureAction = /*#__PURE__*/function (_React$PureComponent) {
(0, _createClass2["default"])(ThreeDSecureAction, [{
key: "componentDidMount",
value: function componentDidMount() {
if (this._attached) return;
this._threeDSecure.attach(this._container.current);
this._attached = true;
}
}, {
key: "render",
Expand Down

0 comments on commit 55d0f9b

Please sign in to comment.