Skip to content

Commit

Permalink
fix: birthType in signup params must not undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
timepresent95 committed Oct 11, 2024
1 parent 3ca0f88 commit 609319b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/store/stores/signupStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ type SignupState = Partial<{
nickName: string;
familyRole: FamilyRole;
birthday: Date;
birthType: BirthType;
}>;
}> & { birthType: BirthType };
type SignupActions = {
setAuthAgent: (agent: AuthAgent) => void;
setInviteCode: (inviteCode: string | null) => void;
Expand All @@ -21,13 +20,13 @@ type SignupActions = {
};
type Signup = SignupState & SignupActions;

const initSignupState = {
const initSignupState: SignupState = {
agent: undefined,
inviteCode: undefined,
nickName: undefined,
familyRole: undefined,
birthday: undefined,
birthType: undefined,
birthType: 'SOLAR',
};

const useSignupStore = create<Signup>(set => ({
Expand Down

0 comments on commit 609319b

Please sign in to comment.