undefined typeof
This commit is contained in:
parent
d62716e301
commit
0eb63de209
13 changed files with 25 additions and 25 deletions
|
|
@ -177,7 +177,7 @@ export const parseUser = (data) => {
|
|||
// deactivated was changed to is_active in Pleroma 2.3.0
|
||||
// so check if is_active is present
|
||||
output.deactivated =
|
||||
typeof data.pleroma.is_active !== 'undefined'
|
||||
data.pleroma.is_active !== undefined
|
||||
? !data.pleroma.is_active // new backend
|
||||
: data.pleroma.deactivated // old backend
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue