tf-checkout-react 1.3.50-beta.1 → 1.3.50-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tf-checkout-react.cjs.development.js +12 -0
- package/dist/tf-checkout-react.cjs.development.js.map +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
- package/dist/tf-checkout-react.esm.js +12 -0
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/idVerificationContainer/index.tsx +15 -1
|
@@ -7613,6 +7613,18 @@ var IDVerification = function IDVerification(props) {
|
|
|
7613
7613
|
__html: iframe
|
|
7614
7614
|
};
|
|
7615
7615
|
};
|
|
7616
|
+
React.useEffect(function () {
|
|
7617
|
+
var isWindowDefined = typeof window !== 'undefined';
|
|
7618
|
+
var orderHash = getQueryVariable('order_hash');
|
|
7619
|
+
if (isWindowDefined) {
|
|
7620
|
+
var checkoutData = JSON.parse(window.localStorage.getItem('checkoutData') || '{}');
|
|
7621
|
+
if (_isEmpty(checkoutData) && orderHash) {
|
|
7622
|
+
window.localStorage.setItem('checkoutData', JSON.stringify({
|
|
7623
|
+
hash: orderHash
|
|
7624
|
+
}));
|
|
7625
|
+
}
|
|
7626
|
+
}
|
|
7627
|
+
}, []);
|
|
7616
7628
|
return React__default.createElement("div", null, React__default.createElement("h2", {
|
|
7617
7629
|
className: "page-header"
|
|
7618
7630
|
}, "Account Verification"), loadingStatus ? null : React__default.createElement(React__default.Fragment, null, !isAccountVerifiedOrPending && React__default.createElement("div", {
|