fix: use MAX_TIME_MINUTES constant to resolve unused variable error
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
David Fencl
2025-12-11 19:28:29 +01:00
parent 065d57a74f
commit 583075a0fd

View File

@@ -124,7 +124,7 @@ const TimeBreaker: React.FC<TimeBreakerProps> = ({ language }) => {
<input <input
type="range" type="range"
min="0" min="0"
max="180" max={MAX_TIME_MINUTES}
value={Math.ceil(timeLeft / 60)} value={Math.ceil(timeLeft / 60)}
onChange={(e) => { onChange={(e) => {
const minutes = parseInt(e.target.value, 10); const minutes = parseInt(e.target.value, 10);
@@ -135,7 +135,7 @@ const TimeBreaker: React.FC<TimeBreakerProps> = ({ language }) => {
/> />
<div className="slider-labels"> <div className="slider-labels">
<span>0m</span> <span>0m</span>
<span>180m</span> <span>{MAX_TIME_MINUTES}m</span>
</div> </div>
</div> </div>