Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/pages/SignupPage/SignupPage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ describe('SignupPage', () => {
display_name: '김경민',
email: '[email protected]',
password: 'password123',
agreements: {
service_terms: { agreed: true, version: '1.0' },
privacy_policy: { agreed: true, version: '1.0' },
marketing: { agreed: false, version: '1.0' },
},
})
})

Expand Down
8 changes: 8 additions & 0 deletions src/pages/SignupPage/SignupPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ interface SignupResponseBody {
email: string
}

// 화면에 표시된 약관 버전. 약관 문구가 바뀌면 같이 올린다.
const TERMS_VERSION = '1.0'

const SERVER_FIELD_TO_SCREEN_FIELD: Record<string, keyof FieldErrors> = {
company_name: 'workplace',
display_name: 'name',
Expand Down Expand Up @@ -84,6 +87,11 @@ export function SignupPage() {
display_name: name,
email,
password,
agreements: {
service_terms: { agreed: termsAgreed, version: TERMS_VERSION },
privacy_policy: { agreed: privacyAgreed, version: TERMS_VERSION },
marketing: { agreed: marketingOptIn, version: TERMS_VERSION },
},
}),
skipAuthRetry: true,
})
Expand Down
Loading