Skip to content

Commit a5cb5d1

Browse files
committed
feat: yet again fix conflics logic :(
1 parent 698565d commit a5cb5d1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

logic/classes.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ export function buttonOptions(checkClass: any) {
4141
]
4242
if (checkClass.available == 'Full') icon = 'mdi-alert-plus'
4343
// class itself is added, but full
44-
if (sameCourse && sameCourse.crn == checkClass.crn) color = 'success'
44+
if (sameCourse && sameCourse.crn == checkClass.crn) {
45+
color = 'success'
46+
} else if (sameCourse && sameCourse.crn != checkClass.crn) {
47+
color = 'warning'
48+
}
4549
}
4650

4751
let buttonOptions = {

0 commit comments

Comments
 (0)