0👍
✅
Why are you having two if statements
that have the same condition? Can try to put both of the buttons in a single if block
something like this:
<div v-if="group.role === 'student'">
<button
type="button"
@click="removePresence()"
class="float-right btn btn-danger" >
Out
</button>
<button
type="button"
@click="updateRooms()"
class="float-right btn btn-success" >
In
</button>
</div>
Source:stackexchange.com