don't show child dropdown if logging into independent account

This commit is contained in:
uh wot 2021-09-09 01:18:02 +02:00
parent 0df130a697
commit c08a2868f8
No known key found for this signature in database
GPG key ID: CB2454984587B781

View file

@ -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 => {