Skip to content

Commit 341ef7a

Browse files
committed
Change var to const
1 parent 7886ffe commit 341ef7a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"$PropertyType": true,
1414
"TimeoutID": true,
1515
"object": true,
16-
"__DEV__": true
16+
"__DEV__": true,
17+
"Stripe": true
1718
},
1819
"rules": {
1920
"react/jsx-filename-extension": 0,

packages/app/src/app/overmind/effects/stripe.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { STRIPE_API_KEY } from '@codesandbox/common/lib/utils/config';
33
function loadScript(path: string) {
44
return new Promise(resolve => {
55
if (typeof document !== 'undefined') {
6-
var script = document.createElement('script');
6+
const script = document.createElement('script');
77
script.onload = resolve;
88
script.async = true;
99
script.type = 'text/javascript';
@@ -20,7 +20,6 @@ const getStripe = async (): Promise<stripe.Stripe> => {
2020
}
2121

2222
if (!localStripeVar) {
23-
// @ts-ignore
2423
localStripeVar = Stripe(STRIPE_API_KEY);
2524
}
2625

0 commit comments

Comments
 (0)