Fixed failling tests

This commit is contained in:
Mikayla Maki 2023-01-23 15:12:31 -08:00
parent ea39983f78
commit 2802e3a1c6
3 changed files with 6 additions and 7 deletions

View file

@ -149,12 +149,11 @@ impl UserStore {
);
cx.update(|cx| {
cx.update_global::<StaffMode, _, _>(|staff_mode, _| {
*staff_mode = info
.as_ref()
cx.set_global(
info.as_ref()
.map(|info| StaffMode(info.staff))
.unwrap_or(StaffMode(false));
})
.unwrap_or(StaffMode(false)),
);
});
current_user_tx.send(user).await.ok();