From e9d52bab493baf0b4b0280c3eda38bfd0e4ddd05 Mon Sep 17 00:00:00 2001 From: Thomas Hallock Date: Fri, 7 Nov 2025 23:00:52 -0600 Subject: [PATCH] fix(worksheets): Set showBorrowNotation to false for smart mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Smart mode doesn't have the showBorrowNotation field in config, so enrichedProblems had undefined for this field. This caused Typst compilation errors. Fix: Explicitly set showBorrowNotation to false for smart mode problems. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- apps/web/src/app/create/worksheets/addition/typstGenerator.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/src/app/create/worksheets/addition/typstGenerator.ts b/apps/web/src/app/create/worksheets/addition/typstGenerator.ts index 6261c76a..595793ce 100644 --- a/apps/web/src/app/create/worksheets/addition/typstGenerator.ts +++ b/apps/web/src/app/create/worksheets/addition/typstGenerator.ts @@ -84,6 +84,7 @@ function generatePageTypst( return { ...p, ...displayOptions, + showBorrowNotation: false, // Smart mode doesn't have borrow notation (yet) } } else { // Manual mode: Uniform display across all problems