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:
parent
3de43f55a6
commit
f997a8adde
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue