refactor: tweaks

This commit is contained in:
Tristan Yang
2023-04-06 11:43:06 +08:00
parent ee60def56d
commit e2b560a76a
4 changed files with 5 additions and 6 deletions
+1 -2
View File
@@ -42,10 +42,9 @@ const serverSlice = createSlice({
name = "",
description = "",
show_user_online_status = false,
language = "en",
webclient_auto_update = true
} = action.payload || {};
return { upgraded, name, logo, description, inviteLink, show_user_online_status, language, webclient_auto_update };
return { upgraded, name, logo, description, inviteLink, show_user_online_status, webclient_auto_update };
},
updateInfo(state, action: PayloadAction<Partial<StoredServer>>) {
const values = action.payload || {};