mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
don't call api if user doesn't have any tags
This commit is contained in:
parent
25984444ca
commit
874d7860e9
2 changed files with 6 additions and 2 deletions
|
@ -458,7 +458,9 @@ export function doAnalyticsTagSync() {
|
||||||
const state = getState();
|
const state = getState();
|
||||||
const tags = selectFollowedTagsList(state);
|
const tags = selectFollowedTagsList(state);
|
||||||
const stringOfTags = tags.join(',');
|
const stringOfTags = tags.join(',');
|
||||||
analytics.apiSyncTags({ content_tags: stringOfTags });
|
if (stringOfTags) {
|
||||||
|
analytics.apiSyncTags({ content_tags: stringOfTags });
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,5 +9,7 @@ export const doToggleTagFollowDesktop = (name: string) => (dispatch: Dispatch, g
|
||||||
const state = getState();
|
const state = getState();
|
||||||
const tags = selectFollowedTagsList(state);
|
const tags = selectFollowedTagsList(state);
|
||||||
const stringOfTags = tags.join(',');
|
const stringOfTags = tags.join(',');
|
||||||
analytics.apiSyncTags({ content_tags: stringOfTags });
|
if (stringOfTags) {
|
||||||
|
analytics.apiSyncTags({ content_tags: stringOfTags });
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue