KIM-JINO5 2 mesi fa
parent
commit
f1a8190cd0

+ 1 - 1
app/(main)/(account)/change-intro/page.tsx

@@ -123,7 +123,7 @@ export default function ChangeIntro()
 					<ol>
 						<li>자기소개는 최대 1000자 이내로 입력 가능합니다.</li>
 						<li>부적절한 내용은 별도의 고지 없이 삭제될 수 있습니다.</li>
-						{config.account.changeIntroDay > 0 && <li>한마디 변경 주기는 {config.account.changeIntroDay}일입니다.</li>}
+						{(config.account.changeIntroDay ?? 0) > 0 && <li>한마디 변경 주기는 {config.account.changeIntroDay}일입니다.</li>}
 					</ol>
 				</dd>
 			</dl>

+ 1 - 1
app/(main)/(account)/change-name/page.tsx

@@ -135,7 +135,7 @@ export default function ChangeName()
 						<li>별명은 최대 20자 이내로 입력 가능합니다.</li>
 						<li>욕설 및 비속어는 별명으로 만들 수 없습니다.</li>
 						<li>부적절한 별명은 별도의 고지 없이 변경될 수 있습니다.</li>
-						{config.account.changeNameDay > 0 && <li>별명 변경 주기는 {config.account.changeNameDay}일입니다.</li>}
+						{(config.account.changeNameDay ?? 0) > 0 && <li>별명 변경 주기는 {config.account.changeNameDay}일입니다.</li>}
 					</ol>
 				</dd>
 			</dl>

+ 3 - 3
app/(main)/(account)/change-password/page.tsx

@@ -103,9 +103,9 @@ export default function ChangePassword()
 	}, [isComplete]);
 
 	const txtPasswordGuide = getPasswordPolicyMessage({
-		passwordUppercaseLength: config.account.passwordUppercaseLength,
-		passwordNumbersLength: config.account.passwordNumbersLength,
-		passwordSpecialcharsLength: config.account.passwordSpecialcharsLength
+		passwordUppercaseLength: config.account.passwordUppercaseLength ?? 0,
+		passwordNumbersLength: config.account.passwordNumbersLength ?? 0,
+		passwordSpecialcharsLength: config.account.passwordSpecialcharsLength ?? 0
 	});
 
 	return (

+ 1 - 1
app/(main)/(account)/change-summary/page.tsx

@@ -133,7 +133,7 @@ export default function ChangeSummary()
 					<ol>
 						<li>한마디는 최대 50자 이내로 입력 가능합니다.</li>
 						<li>부적절한 내용은 별도의 고지 없이 변경될 수 있습니다.</li>
-						{config.account.changeSummaryDay > 0 && <li>자기소개개 변경 주기는 {config.account.changeSummaryDay}일입니다.</li>}
+						{(config.account.changeSummaryDay ?? 0) > 0 && <li>자기소개개 변경 주기는 {config.account.changeSummaryDay}일입니다.</li>}
 					</ol>
 				</dd>
 			</dl>

+ 1 - 1
app/(main)/support/faq/view.tsx

@@ -38,7 +38,7 @@ function highlightHtml(html: string, keyword: string): string {
 	const regex = new RegExp(`(${escaped})`, 'gi');
 
 	// 태그 외부의 텍스트에만 <mark> 적용
-	return html.replace(/(<[^>]*>)|([^<]+)/g, (match, tag, text) => {
+	return html.replace(/(<[^>]*>)|([^<]+)/g, (_match, tag, text) => {
 		if (tag) {
 			return tag;
 		}

+ 1 - 1
app/api/document/[...path]/route.ts

@@ -2,7 +2,7 @@ import { NextRequest, NextResponse } from 'next/server';
 import { ResultDto } from '@/types/response/common';
 import { fetchJson } from '@/lib/utils/server';
 
-export async function GET(request: NextRequest, { params }: { params: Promise<{ path: string[] }> }) {
+export async function GET(_request: NextRequest, { params }: { params: Promise<{ path: string[] }> }) {
 	const { path } = await params;
 	const endpoint = `/api/document/${path.join('/')}`;