Skip to content

Commit 7af6f12

Browse files
fix: synchronous call to getTranslations
1 parent 0b011a1 commit 7af6f12

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

app/sagas/login.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -178,17 +178,10 @@ const fetchRolesFork = function* fetchRolesFork() {
178178
};
179179

180180
const fetchSlashCommandsFork = function* fetchSlashCommandsFork() {
181-
try {
182-
yield getSlashCommands();
183-
} catch (e) {
184-
log(e);
185-
}
186-
};
187-
188-
const fetchAppTranslationsFork = function* fetchAppTranslationsFork() {
189181
try {
190182
const appLang = I18n.currentLocale().split('-')[0];
191183
yield getAppTranslations(appLang);
184+
yield getSlashCommands();
192185
} catch (e) {
193186
log(e);
194187
}
@@ -261,7 +254,6 @@ const handleLoginSuccess = function* handleLoginSuccess({ user }) {
261254
yield fork(fetchCustomEmojisFork);
262255
yield fork(fetchRolesFork);
263256
yield fork(fetchSlashCommandsFork);
264-
yield fork(fetchAppTranslationsFork);
265257
yield fork(registerPushTokenFork);
266258
yield fork(fetchUsersPresenceFork);
267259
yield fork(fetchEnterpriseModulesFork, { user });

0 commit comments

Comments
 (0)