Skip to content

Commit

Permalink
fix(default-theme): missing customer address right after user registr…
Browse files Browse the repository at this point in the history
…ation (#1365)
  • Loading branch information
jnuricumbo authored Mar 4, 2021
1 parent ca00f17 commit 4ec6ecf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/default-theme/src/components/SwRegister.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ import {
useUser,
useCountries,
useSalutations,
useSessionContext,
} from "@shopware-pwa/composables"
import {
mapCountries,
Expand Down Expand Up @@ -172,6 +173,7 @@ export default {
}
},
setup(props, { root }) {
const { refreshSessionContext } = useSessionContext(root)
const { login, register, loading, error: userError } = useUser(root)
const { getCountries, error: countriesError } = useCountries(root)
const { getSalutations, error: salutationsError } = useSalutations(root)
Expand All @@ -193,6 +195,7 @@ export default {
salutationsError,
getMappedSalutations,
userErrorMessages,
refreshSessionContext,
}
},
computed: {
Expand Down Expand Up @@ -264,6 +267,7 @@ export default {
username: this.email,
password: this.password,
})
this.refreshSessionContext()
this.$emit("success")
}
},
Expand Down

1 comment on commit 4ec6ecf

@vercel
Copy link

@vercel vercel bot commented on 4ec6ecf Mar 4, 2021

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.