diff --git a/src/userTool.js b/src/userTool.js
index 93c8b1e7b466782ca4fa0733ff94144aa360f1d7..dd29c598d33c17b6d4f9c73433ba9b27357f3acb 100644
--- a/src/userTool.js
+++ b/src/userTool.js
@@ -68,12 +68,13 @@ class UserView extends ItemView {
         view({ attrs }) { return m('span', attrs.name); },
       },
       onSubmit: (group) => {
+        this.groupchoice = false;
         this.groupmemberships.handler.post({
           user: this.data._id,
           group: group._id,
         }).then((data) => {
           this.groupmemberships.refresh();
-          this.groupchoice = false;
+
         });
       },
     });