Delete Post

This commit is contained in:
2024-07-26 20:56:32 +02:00
parent 0929371c10
commit a515c447e0
14 changed files with 180 additions and 56 deletions
+3 -2
View File
@@ -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) {