mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 06:52:43 +01:00
only allow settings (to add server) on first run
This commit is contained in:
@@ -30,6 +30,8 @@ export type SettingsSlice = {
|
||||
export const selectSettings = {
|
||||
client: (state: SettingsSlice) => state.client,
|
||||
|
||||
firstRun: (state: SettingsSlice) => state.settings.servers.length === 0,
|
||||
|
||||
activeServer: (state: SettingsSlice) => state.settings.servers.find(s => s.id === state.settings.activeServer),
|
||||
setActiveServer: (state: SettingsSlice) => state.setActiveServer,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user