fix: Rendered more hooks than during the previous render in NextEpisodeCountDownButton (#475)

This commit is contained in:
Tom Heidenreich
2025-01-31 10:14:59 +01:00
committed by GitHub
parent 730ef4616f
commit 3eb60840e6

View File

@@ -60,12 +60,12 @@ const NextEpisodeCountDownButton: React.FC<NextEpisodeCountDownButtonProps> = ({
}
};
const { t } = useTranslation();
if (!show) {
return null;
}
const { t } = useTranslation();
return (
<TouchableOpacity
className="w-32 overflow-hidden rounded-md bg-black/60 border border-neutral-900"