Skip to content

Commit

Permalink
Merge branch 'fix/card-selector-breaking-sandbox' into 'develop'
Browse files Browse the repository at this point in the history
(fix) card selector breaking on sandboxes when no key is provided

See merge request minds/mobile-native!1996
  • Loading branch information
msantang78 committed Nov 17, 2022
2 parents 18488ef + a110f15 commit 6489f6f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/common/services/stripe.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export const initStripe = async () => {

const settings = mindsConfigService.getSettings();

await stripeInit({
publishableKey: settings.stripe_key,
});
if (settings.stripe_key) {
await stripeInit({
publishableKey: settings.stripe_key,
});
}
};

0 comments on commit 6489f6f

Please sign in to comment.