From 57b3ed23b20ab684d293e99bfd9f5438b1fd6c88 Mon Sep 17 00:00:00 2001 From: Albert Gasset Date: Tue, 28 May 2019 12:34:33 +0200 Subject: [PATCH] MOBILE-2992 user: Fix sync preferences --- src/core/user/providers/sync.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/user/providers/sync.ts b/src/core/user/providers/sync.ts index c63e8dc61..62de2f679 100644 --- a/src/core/user/providers/sync.ts +++ b/src/core/user/providers/sync.ts @@ -80,7 +80,7 @@ export class CoreUserSyncProvider extends CoreSyncBaseProvider { return this.userOffline.setPreference(preference.name, onlineValue, onlineValue, siteId); } - return this.userProvider.setUserPreference(name, preference.value, siteId).catch((error) => { + return this.userProvider.setUserPreference(preference.name, preference.value, siteId).catch((error) => { if (this.utils.isWebServiceError(error)) { warnings.push(this.textUtils.getErrorMessageFromError(error)); } else {