mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
rename error util
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
function shouldShowGet(error: Error | null | undefined) {
|
||||
function shouldShowError(error: Error | null | undefined) {
|
||||
if (error?.name == "ResponseError" && error["response"].status == 404)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export { shouldShowGet };
|
||||
export { shouldShowError };
|
||||
|
||||
Reference in New Issue
Block a user