Commit dc5062ff authored by tom's avatar tom

fix ts

parent ea7e636d
...@@ -52,7 +52,7 @@ export default function useFetch() { ...@@ -52,7 +52,7 @@ export default function useFetch() {
} else { } else {
if (path.includes(RESOURCES.csrf.path)) { if (path.includes(RESOURCES.csrf.path)) {
return Promise.resolve({ token: response.headers.get('x-bs-account-csrf') } as Success); return Promise.resolve({ token: response.headers.get('x-bs-account-csrf') }) as unknown as Promise<Success>;
} }
return response.json() as Promise<Success>; return response.json() as Promise<Success>;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment