We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9998d99 commit 81f5fe8Copy full SHA for 81f5fe8
client/settings/stripe-account-connected-notice/index.js
@@ -8,6 +8,8 @@ import {
8
} from 'wcstripe/stripe-utils/utils';
9
10
const LOCAL_STORAGE_KEY = 'wc_stripe_is_onboarding_through_wc_setup';
11
+const EXPIRATION_TIME = 60 * 60 * 1000; // 1 hour in milliseconds
12
+
13
const query = new URLSearchParams( window.location.search );
14
const from = query.get( 'from' );
15
@@ -27,7 +29,7 @@ if (
27
29
newAccountContainer &&
28
30
! isPaymentOnboardingTaskComplete
31
) {
- setStorageWithExpiration( LOCAL_STORAGE_KEY, 'true', 60000 );
32
+ setStorageWithExpiration( LOCAL_STORAGE_KEY, 'true', EXPIRATION_TIME );
33
}
34
35
const shouldShowNotice = () => {
0 commit comments