Skip to content

Commit e769ad5

Browse files
committed
fix(Environment): remove null fallback for commerce and API keys settings initialization
1 parent 30e90e5 commit e769ad5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/clerk-js/src/core/resources/Environment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ export class Environment extends BaseResource implements EnvironmentResource {
5353
this.clientDebugMode = this.withDefault(data.client_debug_mode, this.clientDebugMode);
5454
this.organizationSettings = new OrganizationSettings(data.organization_settings);
5555
this.userSettings = new UserSettings(data.user_settings);
56-
this.commerceSettings = new CommerceSettings(data.commerce_settings ?? null);
57-
this.apiKeysSettings = new APIKeySettings(data.api_keys_settings ?? null);
56+
this.commerceSettings = new CommerceSettings(data.commerce_settings);
57+
this.apiKeysSettings = new APIKeySettings(data.api_keys_settings);
5858
this.protectConfig = new ProtectConfig(data.protect_config ?? null);
5959

6060
return this;

0 commit comments

Comments
 (0)