Skip to content

Commit 3588ebb

Browse files
committed
Update comments for locale selection for flutter web
1 parent b34e5b0 commit 3588ebb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/stripe_web/lib/src/web_stripe.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ class WebStripe extends StripePlatform {
5757
_urlScheme = urlScheme;
5858

5959
if (__stripe != null) {
60-
// Check if the new stripeAccountId is different
60+
// Check if the new stripeAccountId or locale is different
6161
if (__stripe!.stripeAccount != stripeAccountId || __stripe!.locale != locale) {
62-
// Re-initialize with new stripeAccountId
62+
// Re-initialize with new stripeAccountId or locale
6363
await stripe_js.loadStripe();
6464
var stripeOption = stripe_js.StripeOptions();
6565
if (__stripe!.stripeAccount != stripeAccountId) {

0 commit comments

Comments
 (0)