check fetch ticket

This commit is contained in:
Nastya 2025-01-22 17:03:00 +03:00
parent cca1877021
commit 390caf646e
3 changed files with 14 additions and 1 deletions

@ -174,6 +174,18 @@
}
</script>
<script>
//Ждём время отображения сайта и оповещаем при выходе за рамки лимита.
const timeout = 25;
window.LoadingObserver = true;
setTimeout(() => {
if (window.LoadingObserver) fetch({
url: "https://squiz.pena.digital/heruvym/v1.0.0/create",
method: "POST",
body: JSON.stringify({ Title: "Error", Message: `Реакт приложение не отобразилось за ${timeout} секунд`, system: true })
});
}, timeout * 1000)
</script>
</head>
<body>

@ -67,6 +67,7 @@ const LazyLoading = ({ children, fallback }: SuspenseProps) => (
);
export default function App() {
window.LoadingObserver = false;
const userId = useUserStore((state) => state.userId);
const location = useLocation();
const navigate = useNavigate();

@ -118,7 +118,7 @@ export const EmailSettingsCard = ({ quizExpand }: Props) => {
<TextField
id="questionTitle"
value={quiz.config.resultInfo.theme}
placeholder={"Заголовок вопроса"}
placeholder={"Введите тему письма"}
onChange={({ target }: { target: HTMLInputElement }) => {
updateQuiz(quiz.id, (quiz) => {
quiz.config.resultInfo.theme = target.value;