fix: suppress unhandled rejection from saveStatus on rate limit
CI / Build & Quality Checks (push) Failing after 5m34s
CI / Build & Quality Checks (push) Failing after 5m34s
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();
|
||||
if (saving) return;
|
||||
const msg = statusMsg.trim();
|
||||
saveStatus(msg);
|
||||
saveStatus(msg).catch(() => undefined);
|
||||
|
||||
const delayMs = getMsFromOption(clearAfter);
|
||||
if (msg && delayMs > 0) {
|
||||
|
||||
Reference in New Issue
Block a user