Prevent replacement of identical username fields

This commit is contained in:
jeffvli
2022-11-21 09:57:32 -08:00
parent 20cd34a38f
commit eb7e259c86
-3
View File
@@ -48,9 +48,6 @@ export const useAuthStore = create<AuthSlice>()(
accessToken: '',
addServerCredential: (options) => {
set((state) => {
state.serverCredentials = state.serverCredentials.filter(
(c) => c.username !== options.username
);
state.serverCredentials.push(options);
});
},