[SDK] Address stack review feedback (#11389)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user