fix: fix polling interval

This commit is contained in:
Pavel Torbeev 2023-09-09 17:16:18 +03:00
parent 5b47207bfd
commit 2ee63822cf

View File

@ -4,7 +4,6 @@ import { Heading, HeadingSize } from '../../components/Heading';
import { useUrlParam } from '../../hooks/useUrlParam';
import { TEXT_PAGE_PARAM } from '../../app/routes';
import { ETextVariants, Text } from '../../components/Text';
import { getPercentageColor } from '../../utils/getPercentageColor';
import { Tooltip } from '../../components/Tooltip';
import { Link } from '../../components/Link';
import { useSingleTimeout } from '../../hooks/useSingleTimeout';
@ -18,7 +17,7 @@ export type TextFields = {
type: ScoreType;
};
export const TEXT_REFETCH_MS = 2000;
export const TEXT_REFETCH_MS = 500;
export const TextPage: FC = () => {
const textId = useUrlParam(TEXT_PAGE_PARAM, { parser: parseInt });