mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-27 06:51:49 +01:00
Oops!
This commit is contained in:
parent
1573077f77
commit
fa396e0183
@ -2,7 +2,7 @@ import { useCallback, useMemo } from "react";
|
|||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
// 10% chance of getting a joke title
|
// 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() {
|
export function useRandomTranslation() {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
Loading…
Reference in New Issue
Block a user