fix: saving an account setting will no longer delete a time zone pref… (#29)
* fix: saving an account setting will no longer delete a time zone preference * Update service.js
This commit is contained in:
@@ -41,6 +41,9 @@ function unpackFieldErrors(fieldErrors) {
|
||||
function unpackAccountResponseData(data) {
|
||||
const unpackedData = data;
|
||||
|
||||
// This is handled by preferences
|
||||
delete unpackedData.time_zone;
|
||||
|
||||
SOCIAL_PLATFORMS.forEach(({ id, key }) => {
|
||||
const platformData = data.social_links.find(({ platform }) => platform === id);
|
||||
unpackedData[key] = typeof platformData === 'object' ? platformData.social_link : '';
|
||||
|
||||
Reference in New Issue
Block a user