Skip to content

Commit 81f5fe8

Browse files
authored
Increase onboarding notice localstorage expiration time to 1hr (#4499)
1 parent 9998d99 commit 81f5fe8

File tree

1 file changed

+3
-1
lines changed
  • client/settings/stripe-account-connected-notice

1 file changed

+3
-1
lines changed

client/settings/stripe-account-connected-notice/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import {
88
} from 'wcstripe/stripe-utils/utils';
99

1010
const LOCAL_STORAGE_KEY = 'wc_stripe_is_onboarding_through_wc_setup';
11+
const EXPIRATION_TIME = 60 * 60 * 1000; // 1 hour in milliseconds
12+
1113
const query = new URLSearchParams( window.location.search );
1214
const from = query.get( 'from' );
1315

@@ -27,7 +29,7 @@ if (
2729
newAccountContainer &&
2830
! isPaymentOnboardingTaskComplete
2931
) {
30-
setStorageWithExpiration( LOCAL_STORAGE_KEY, 'true', 60000 );
32+
setStorageWithExpiration( LOCAL_STORAGE_KEY, 'true', EXPIRATION_TIME );
3133
}
3234

3335
const shouldShowNotice = () => {

0 commit comments

Comments
 (0)