feat: add assessment, privacy and support flows
This commit is contained in:
1 parent
ee3738ee73
commit
e4f24fa202
339 files changed
+56454
-1126
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import { ApiRequestError, invalidResponseCode } from "../../../shared/api";
|
||||
|
||||
export function isOutcomeAmbiguous(error: unknown): boolean {
|
||||
return (
|
||||
error instanceof ApiRequestError &&
|
||||
(error.status === 0 ||
|
||||
error.status >= 500 ||
|
||||
error.status === 429 ||
|
||||
error.code === invalidResponseCode)
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user