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 <noreply@anthropic.com>
This commit is contained in:
Giorgio Gilestro 2026-05-27 15:15:46 +02:00
parent 3de43f55a6
commit f997a8adde

View file

@ -114,7 +114,7 @@
} }
} catch (e) { } catch (e) {
validated = null; validated = null;
setStatus(tickerStatus, '✗ couldn't validate try again', 'err'); setStatus(tickerStatus, '✗ couldn\'t validate — try again', 'err');
costCurrencyEl.textContent = ''; costCurrencyEl.textContent = '';
clearDuplicateWarning(); clearDuplicateWarning();
} }