mirror of
https://gitlab.com/RemixDev/deezer-js.git
synced 2025-01-29 17:48:29 +00:00
don't show child dropdown if logging into independent account
This commit is contained in:
parent
0df130a697
commit
c08a2868f8
|
@ -104,7 +104,7 @@ class Deezer{
|
|||
|
||||
async _post_login(user_data){
|
||||
this.childs = []
|
||||
let family = user_data.USER.MULTI_ACCOUNT.ENABLED
|
||||
let family = user_data.USER.MULTI_ACCOUNT.ENABLED && !user_data.USER.MULTI_ACCOUNT.IS_SUB_ACCOUNT
|
||||
if (family){
|
||||
let childs = await this.gw.get_child_accounts()
|
||||
childs.forEach(child => {
|
||||
|
|
Loading…
Reference in a new issue