From f997a8addeed4051a13e18192721d968dbb01a9f Mon Sep 17 00:00:00 2001 From: Giorgio Gilestro Date: Wed, 27 May 2026 15:15:46 +0200 Subject: [PATCH] portfolio-edit: fix unescaped apostrophe in fallback string A single-quoted string literal "couldn't validate" was breaking the parse because the apostrophe wasn't escaped. The page logged a syntax error and none of the edit-mode JS ran. Backslash-escape it. Co-Authored-By: Claude Opus 4.7 --- app/static/js/portfolio_edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/static/js/portfolio_edit.js b/app/static/js/portfolio_edit.js index 40c1cf4..52cbffb 100644 --- a/app/static/js/portfolio_edit.js +++ b/app/static/js/portfolio_edit.js @@ -114,7 +114,7 @@ } } catch (e) { validated = null; - setStatus(tickerStatus, '✗ couldn't validate — try again', 'err'); + setStatus(tickerStatus, '✗ couldn\'t validate — try again', 'err'); costCurrencyEl.textContent = ''; clearDuplicateWarning(); }