[SDK] Address stack review feedback (#11389)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-08-13 22:26:23 +03:00
committed by GitHub
parent 3677c98873
commit b89167f07c
8 changed files with 69 additions and 22 deletions
+3 -1
View File
@@ -169,7 +169,9 @@ export const LoginForm = ({
)
} else {
logger.warn('Failed to login', {error: errMsg})
setError(cleanError(errMsg))
/* the error object, not its stringification: cleanError only
* extracts the clean server message from a live LexError */
setError(cleanError(err))
}
}
}
+3 -2
View File
@@ -354,7 +354,6 @@ export function useSubmitSignup() {
onboardingDispatch({type: 'start'})
} catch (err) {
const e = err as Error
let errMsg = e.toString()
if (
matchXrpcError(e, com.atproto.server.createAccount) ===
'InvalidInviteCode'
@@ -368,7 +367,9 @@ export function useSubmitSignup() {
return
}
const error = cleanError(errMsg)
/* the error object, not its stringification: cleanError only extracts
* the clean server message from a live LexError */
const error = cleanError(e)
const isHandleError = error.toLowerCase().includes('handle')
dispatch({type: 'setIsLoading', value: false})