9 lines
228 B
JavaScript
9 lines
228 B
JavaScript
|
export const normalizeAccount = account => {
|
||
|
const birthday = [
|
||
|
account.getIn(['pleroma', 'birthday']),
|
||
|
account.getIn(['other_settings', 'birthday']),
|
||
|
].find(Boolean);
|
||
|
|
||
|
return account.set('birthday', birthday);
|
||
|
};
|