fix: suppress unhandled rejection from saveStatus on rate limit
useAsync re-throws after setting error state, so callers that don't await or catch the returned promise get an unhandled rejection. Fixes JAVASCRIPT-REACT-E (429 on presence endpoint). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -399,7 +399,7 @@ function ProfileStatus() {
|
|||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
if (saving) return;
|
if (saving) return;
|
||||||
const msg = statusMsg.trim();
|
const msg = statusMsg.trim();
|
||||||
saveStatus(msg);
|
saveStatus(msg).catch(() => undefined);
|
||||||
|
|
||||||
const delayMs = getMsFromOption(clearAfter);
|
const delayMs = getMsFromOption(clearAfter);
|
||||||
if (msg && delayMs > 0) {
|
if (msg && delayMs > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user