fix(teams): hover states, missing snackbars

This commit is contained in:
SabreCat
2022-05-04 17:02:09 -05:00
parent 86b0d6d86c
commit 6a5f467a35
4 changed files with 19 additions and 22 deletions

View File

@@ -40,15 +40,11 @@ export default {
const canScoreTask = await this.beforeTaskScore(task);
if (!canScoreTask) return;
if (direction === 'down' && task.group.completedBy && task.group.completedBy !== user._id) {
task.completed = false;
} else {
try {
scoreTask({ task, user, direction });
} catch (err) {
this.text(err.message);
return;
}
try {
scoreTask({ task, user, direction });
} catch (err) {
this.text(err.message);
return;
}
this.playTaskScoreSound(task, direction);