Skip to content

Commit

Permalink
refactor: change storage name to singular in select dictionary varian…
Browse files Browse the repository at this point in the history
…t feature
  • Loading branch information
Rue-pro committed Mar 24, 2024
1 parent 4b53d30 commit fb6d2d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/entities/dictionary/model/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const defaultDictionaries: Dictionaries = {
},
}

export const DictionariesStorage = new Storage<Dictionaries>(
export const DictionaryStorage = new Storage<Dictionaries>(
'dictionaries',
defaultDictionaries,
)
Expand All @@ -122,7 +122,7 @@ export const $dictionaries = atom<Dictionaries>(defaultDictionaries)

onMount($dictionaries, () => {
task(async () => {
const getResult = await DictionariesStorage.get()
const getResult = await DictionaryStorage.get()
if (getResult.data) {
$dictionaries.set(getResult.data)
} else {
Expand All @@ -146,7 +146,7 @@ export const selectVariant = async (
dictionary.activeVariant = variant
}

const setResult = await DictionariesStorage.set(dictionaries)
const setResult = await DictionaryStorage.set(dictionaries)
if (setResult.data) {
$dictionaries.set({ ...dictionaries })
} else {
Expand Down

0 comments on commit fb6d2d1

Please sign in to comment.