Merge branch 'independent-acc-child-dropdown-fix' into 'main'

don't show child dropdown if logging into independent account

See merge request RemixDev/deezer-js!2
This commit is contained in:
RemixDev 2021-09-09 05:21:52 +00:00
commit 14fa1bd807

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