From fa396e0183b920d82e87318f3cffd1888e973efc Mon Sep 17 00:00:00 2001 From: Jip Fr Date: Sun, 31 Dec 2023 16:35:10 +0100 Subject: [PATCH] Oops! --- src/hooks/useRandomTranslation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useRandomTranslation.ts b/src/hooks/useRandomTranslation.ts index ee505573..4351ffad 100644 --- a/src/hooks/useRandomTranslation.ts +++ b/src/hooks/useRandomTranslation.ts @@ -2,7 +2,7 @@ import { useCallback, useMemo } from "react"; import { useTranslation } from "react-i18next"; // 10% chance of getting a joke title -const shouldGiveJokeTitle = () => Math.floor(Math.random() * 0) === 0; +const shouldGiveJokeTitle = () => Math.floor(Math.random() * 10) === 0; export function useRandomTranslation() { const { t } = useTranslation();