Skip to content

Commit

Permalink
[MS] Fixed style
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-7 committed Aug 21, 2024
1 parent 4d45f1a commit 0116647
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/services/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ function getStripeApiKey(): { key: string; mode: EnvironmentType } {
if (import.meta.env[STRIPE_ENV_VARIABLE]) {
return {
key: import.meta.env[STRIPE_ENV_VARIABLE],
mode: (import.meta.env[STRIPE_ENV_VARIABLE] as string).startsWith('pk_live_') ? EnvironmentType.Production : EnvironmentType.Development,
mode: (import.meta.env[STRIPE_ENV_VARIABLE] as string).startsWith('pk_live_')
? EnvironmentType.Production
: EnvironmentType.Development,
};
}
return { key: DEFAULT_STRIPE_API_KEY, mode: EnvironmentType.Development };
Expand Down

0 comments on commit 0116647

Please sign in to comment.