From 40f68817b65de9dbb706342fcaad5697dab3100d Mon Sep 17 00:00:00 2001
From: Furkan Sahin <furkan-dev@proton.me>
Date: Tue, 31 May 2022 23:20:43 -0500
Subject: move selfassign to bottom of function.

---
 src/components/EditorLists.svelte | 4 ----
 1 file changed, 4 deletions(-)

(limited to 'src/components/EditorLists.svelte')

diff --git a/src/components/EditorLists.svelte b/src/components/EditorLists.svelte
index 6eb248f..2c5ca6c 100644
--- a/src/components/EditorLists.svelte
+++ b/src/components/EditorLists.svelte
@@ -60,8 +60,6 @@
 
   function assignLab(id: number) {
     selectedPeerTeacher?.labs.add(id);
-    // Self assignemnt to update `assignedLabs` and `compatibleLabs`
-    selectedPeerTeacher = selectedPeerTeacher;
 
     // Mark lab as assigned
     const lab = $labStore.get(id);
@@ -75,8 +73,6 @@
 
   function unassignLab(id: number) {
     selectedPeerTeacher?.labs.delete(id);
-    // Self assignemnt to update `assignedLabs` and `compatibleLabs`
-    selectedPeerTeacher = selectedPeerTeacher;
 
     // Mark lab as unassigned
     const lab = $labStore.get(id);
-- 
cgit v1.2.3

