BUG fix: login expired
This commit is contained in:
parent
17860040eb
commit
74c3bc7034
|
@ -29,7 +29,7 @@ const kunFetchRequest = async <T>(
|
|||
const newResponseData = await requestRefresh(fullUrl, options)
|
||||
const data: T = await newResponseData.json()
|
||||
return data
|
||||
} else if (response.status === 233) {
|
||||
} else if (!response.ok) {
|
||||
// Handle some known backend error
|
||||
await onRequestError(response)
|
||||
return {} as T
|
||||
|
|
Loading…
Reference in a new issue