mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
fix(teams): hover states, missing snackbars
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user