Browse Source

Oops!

pull/687/head
Jip Fr 2 years ago
parent
commit
fa396e0183
  1. 2
      src/hooks/useRandomTranslation.ts

2
src/hooks/useRandomTranslation.ts

@ -2,7 +2,7 @@ import { useCallback, useMemo } from "react"; @@ -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();

Loading…
Cancel
Save