UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Platform One
P
Party Bus
Launchboard
launchboard-fe
Commits
8861bdda
Commit
8861bdda
authored
May 03, 2021
by
Keith Becker
Browse files
refactor if statement
parent
f7bb535d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
src/utils/course.js
src/utils/course.js
+1
-3
No files found.
src/utils/course.js
View file @
8861bdda
...
@@ -41,9 +41,7 @@ export const canAddStudentsToCourse = (
...
@@ -41,9 +41,7 @@ export const canAddStudentsToCourse = (
}
}
//check if selected members is an array
//check if selected members is an array
if
(
!
Array
.
isArray
(
selectedMembers
))
{
if
(
!
Array
.
isArray
(
selectedMembers
)
||
selectedMembers
.
length
<=
0
)
{
canAddToCourse
=
false
;
}
else
if
(
selectedMembers
.
length
<=
0
)
{
canAddToCourse
=
false
;
canAddToCourse
=
false
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment