Skip to content

Commit

Permalink
save version override from quick connect
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed May 13, 2024
1 parent 6f085ac commit 8d710e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/react/ServersListProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,10 @@ const Inner = () => {
autoLoginPassword: server?.autoLogin?.[username],
onSuccessfulPlay () {
if (overrides.shouldSave && !serversList.some(s => s.ip === ip)) {
const newServersList = [...serversList, {
const newServersList: StoreServerItem[] = [...serversList, {
ip,
lastJoined: Date.now(),
versionOverride: overrides.versionOverride,
}]
// setServersList(newServersList)
setNewServersList(newServersList) // component is not mounted
Expand Down

0 comments on commit 8d710e2

Please sign in to comment.