Skip to content

fix: トップページの問数表示と改善提案セクションのクラッシュを修正#1

Open
hellboy-1101 wants to merge 1 commit into
mainfrom
fix/display-and-scoring-bugs
Open

fix: トップページの問数表示と改善提案セクションのクラッシュを修正#1
hellboy-1101 wants to merge 1 commit into
mainfrom
fix/display-and-scoring-bugs

Conversation

@hellboy-1101

Copy link
Copy Markdown
Owner

Summary

  • 画面表示バグ: トップページに「10問の診断クイズ」と表示されていたが、実際は5問。「5問」に修正
  • スコアリング表示バグ: GapSuggestions.tsx のレンダリングループで "action" キーを参照していたが、grouped オブジェクトと TYPE_CONFIG のキーは "interest"grouped["action"]undefined になり、.length アクセスで TypeError が発生し、改善提案セクション全体がクラッシュしていた

Changes

  • src/app/page.tsx: 「10問」→「5問」
  • src/components/GapSuggestions.tsx: "action""interest"

Test plan

  • トップページで「5問の診断クイズ」と表示されることを確認
  • 診断完了後、改善提案セクションが正常に表示されることを確認
  • interest タイプの提案がある場合、「関心領域に基づく提案」セクションが正しく展開・表示されることを確認
  • npx next build でビルドエラーがないことを確認済み

- page.tsx: 「10問」→「5問」に修正(実際のクイズ数と一致)
- GapSuggestions.tsx: "action"→"interest"に修正(grouped/TYPE_CONFIGのキーと一致させ、undefinedアクセスによるランタイムクラッシュを解消)
@vercel

vercel Bot commented Mar 31, 2026

Copy link
Copy Markdown

@satoshiamenomori is attempting to deploy a commit to the hellboy1101's projects team on Vercel, but is not a member of this team. To resolve this issue, you can:

  • Make your repository public. Collaboration is free for open source and public repositories.
  • Upgrade to pro and add @satoshiamenomori as a member. A Pro subscription is required to access Vercel's collaborative features.
    • If you're the owner of the team, click here to upgrade and add @satoshiamenomori as a member.
    • If you're the user who initiated this build request, click here to request access.
    • If you're already a member of the hellboy1101's projects team, make sure that your Vercel account is connected to your GitHub account.

To read more about collaboration on Vercel, click here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants