Skip to content

Commit

Permalink
fix(ui): Correctly pull __internal_country from useClerk (#3787)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcarpenter authored and brkalow committed Jul 24, 2024
1 parent 0ac69ee commit 7bd6b67
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .changeset/nine-terms-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
3 changes: 2 additions & 1 deletion packages/ui/src/components/sign-in/sign-in.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ function SignInGetHelp() {

export function SignInComponentLoaded() {
const clerk = useClerk();
const locationBasedCountryIso = (clerk as any)?.__internal_country;
// TODO to fix IsomorphicClerk
const locationBasedCountryIso = (clerk as any)?.clerkjs.__internal_country;
const enabledConnections = useEnabledConnections();
const { isDevelopmentOrStaging } = useEnvironment();
const { t } = useLocalizations();
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/src/components/sign-up/sign-up.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ function SignUpComponentLoaded() {
const clerk = useClerk();
const enabledConnections = useEnabledConnections();
const { isDevelopmentOrStaging, userSettings } = useEnvironment();
const locationBasedCountryIso = (clerk as any)?.__internal_country;
// TODO to fix IsomorphicClerk
const locationBasedCountryIso = (clerk as any)?.clerkjs.__internal_country;
const { t } = useLocalizations();
const { enabled: firstNameEnabled, required: firstNameRequired } = useAttributes('first_name');
const { enabled: lastNameEnabled, required: lastNameRequired } = useAttributes('last_name');
Expand Down

0 comments on commit 7bd6b67

Please sign in to comment.