MAPG-235 timeLimit restored after reload of the page. Time limit selector usability improved
This commit is contained in:
1 parent
b78d564f6f
commit
aadeda05af
5 files changed
+26
-4
No files matched your search
@@ -50,7 +50,7 @@ class UserInChallenge extends Model
|
||||
public function setTimeLeft(?int $timeLeft): void
|
||||
{
|
||||
if(isset($timeLeft)) {
|
||||
$this->timeLeft = $timeLeft;
|
||||
$this->timeLeft = max(0, $timeLeft);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user