Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: fix lint

Steven43a8b7d0e1fe
diff --git a/web/src/labs/i18n/createI18nStore.tsx b/web/src/labs/i18n/createI18nStore.tsx
index 10a0c56ef..83c8ace8a 100644
--- a/web/src/labs/i18n/createI18nStore.tsx
+++ b/web/src/labs/i18n/createI18nStore.tsx
@@ -14,14 +14,14 @@ const createI18nStore = (preloadedState: I18nState) => {
const setState = (state: Partial<I18nState>) => {
const nextState = {
- ...currentState,
- ...state,
+ ...currentState,
+ ...state,
};
const prevState = currentState;
currentState = nextState;
for (const cb of listeners) {
- cb(currentState, prevState);
+ cb(currentState, prevState);
}
};
@@ -30,13 +30,13 @@ const createI18nStore = (preloadedState: I18nState) => {
listeners.push(listener);
const unsubscribe = () => {
- if (!isSubscribed) {
+ if (!isSubscribed) {
return;
- }
+ }
- const index = listeners.indexOf(listener);
- listeners.splice(index, 1);
- isSubscribed = false;
+ const index = listeners.indexOf(listener);
+ listeners.splice(index, 1);
+ isSubscribed = false;
};
return unsubscribe;