Delete Post
This commit is contained in:
@@ -15,10 +15,11 @@ export enum ERRORS {
|
||||
const handleError = (
|
||||
//eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
error: any,
|
||||
context?: string,
|
||||
//eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
t: TFunction<'translation', undefined> | ((..._in: any) => any) = (..._in: any) => _in
|
||||
t: TFunction<'translation', undefined> | ((..._in: any) => any) = (..._in: any) => _in,
|
||||
context?: string
|
||||
): string => {
|
||||
console.log(context);
|
||||
if (!error) return t('', {});
|
||||
|
||||
if (error.code) {
|
||||
|
||||
Reference in New Issue
Block a user