Skip to content

Commit

Permalink
Revert to consistant style
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Aug 28, 2024
1 parent ac39997 commit ec27eff
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/types/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,17 @@ export class RuntimeConfig {
}

public captchaRequired(): boolean {
return window.runtimeConfig.hasOwnProperty("captchaRequired")
? window.runtimeConfig.captchaRequired
: defaultConfig.captchaRequired;
if (window.runtimeConfig.hasOwnProperty("captchaRequired")) {
return window.runtimeConfig.captchaRequired;
}
return defaultConfig.captchaRequired;
}

public captchaSiteKey(): string {
return (
(window.runtimeConfig.hasOwnProperty("captchaSiteKey")
? window.runtimeConfig.captchaSiteKey
: "") || defaultConfig.captchaSiteKey
);
if (window.runtimeConfig.hasOwnProperty("captchaSiteKey")) {
return window.runtimeConfig.captchaSiteKey;
}
return defaultConfig.captchaSiteKey;
}

public emailServicesEnabled(): boolean {
Expand Down

0 comments on commit ec27eff

Please sign in to comment.