summaryrefslogtreecommitdiff
path: root/components/signup/conset-step.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'components/signup/conset-step.tsx')
-rw-r--r--components/signup/conset-step.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/signup/conset-step.tsx b/components/signup/conset-step.tsx
index 4d0a544f..3a145ef1 100644
--- a/components/signup/conset-step.tsx
+++ b/components/signup/conset-step.tsx
@@ -11,6 +11,7 @@ import { useTranslation } from '@/i18n/client';
interface PolicyData {
id: number;
policyType: 'privacy_policy' | 'terms_of_service';
+ locale: string; // locale 필드 필요
version: string;
content: string; // HTML 형태의 리치텍스트
effectiveDate: string;
@@ -56,11 +57,11 @@ export default function ConsentStep({ data, onChange, onNext, lng }: ConsentStep
setLoading(true);
setError(null);
- const result = await getCurrentPolicies();
+ const result = await getCurrentPolicies(lng);
if (result.success) {
console.log('Policy data loaded:', result.data);
- setPolicyData(result.data);
+ setPolicyData(result.data[lng]);
} else {
setError(result.error || t('policyLoadError'));
console.error('Failed to fetch policy data:', result.error);