Skip to content

Commit

Permalink
fix(default-theme): build the right storefront URL during registration (
Browse files Browse the repository at this point in the history
  • Loading branch information
mkucmus authored Jun 29, 2020
1 parent d9d1e26 commit 6b32626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/default-theme/components/SwRegister.vue
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export default {
email: this.email,
password: this.password,
salutationId: this.salutation.id,
storefrontUrl: window?.location?.origin,
storefrontUrl: window && window.location && `${window.location.protocol}//${window.location.hostname}`,
billingAddress: {
firstName: this.firstName,
salutationId: this.salutation.id,
Expand Down

1 comment on commit 6b32626

@vercel
Copy link

@vercel vercel bot commented on 6b32626 Jun 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.