Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AliasWebBased
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
longph
AliasWebBased
Merge requests
!27
Fix test findings
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Imported
Fix test findings
develop
into
main
Overview
2
Commits
4
Pipelines
0
Changes
8
Merged
Imported
longph
requested to merge
develop
into
main
9 months ago
Overview
2
Commits
4
Pipelines
0
Changes
8
Expand
Created by: phamduylong
Changelog:
Prevent teams' names duplication
Change error handling
Clear countdown interval when the game ends
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
18214a3c
4 commits,
7 months ago
8 files
+
16
−
19
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
src/lib/helpers/common.ts
+
4
−
0
Options
@@ -35,6 +35,10 @@ export function validateGame(game: Game): string[] {
erroneousMessages
.
push
(
'
Name of team 2 is invalid
'
);
}
if
(
game
.
team1
===
game
.
team2
)
{
erroneousMessages
.
push
(
'
Name of team 1 and team 2 are the same
'
);
}
if
(
typeof
game
.
team1_score
!==
'
number
'
||
game
.
team1_score
<
0
)
{
erroneousMessages
.
push
(
'
Score of team 1 is invalid
'
);
}
Loading