Skip to content

Commit

Permalink
fix: loading state
Browse files Browse the repository at this point in the history
  • Loading branch information
borkopetrovicc committed Jun 15, 2023
1 parent 1cd4df1 commit 2093530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/AccountController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export async function logout() {

export const register = async (email: string, password: string) => {
await useService(async ({ accountService, accessModel, config }) => {
useAccountStore.setState({ customerConsents: null });
useAccountStore.setState({ loading: true });
const response = await accountService.register({ config, email, password });
if (response) {
const { user, customerConsents } = response;
Expand Down

0 comments on commit 2093530

Please sign in to comment.