(fix) redirect home was not correct
This commit is contained in:
@@ -155,7 +155,7 @@ export const updateUserSettings = withUser(async (user: AuthenticatedUser, prevS
|
|||||||
|
|
||||||
// Get current locale and redirect to home with success message
|
// Get current locale and redirect to home with success message
|
||||||
const locale = await getLocale();
|
const locale = await getLocale();
|
||||||
await gotoHomeWithMessage(locale, 'user-settings-saved-message');
|
await gotoHomeWithMessage(locale, 'userSettingsSaved');
|
||||||
|
|
||||||
// This return is needed for TypeScript, but won't be reached due to redirect
|
// This return is needed for TypeScript, but won't be reached due to redirect
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user