Skip to content

Commit 1b9e60b

Browse files
docs(audience): describe isTrackingDisabled by capability, not level
Comment referenced the 'none' level specifically, but the check now delegates to canTrack(), which is the capability source of truth. Describe the predicate in the same terms so the comment doesn't rot if another non-tracking level is added. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c175eb6 commit 1b9e60b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/audience/sdk/src

packages/audience/sdk/src/sdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export class Audience {
144144

145145
// --- Helpers ---
146146

147-
/** True when consent is 'none' — SDK should not enqueue anything. */
147+
/** True when the current consent level does not permit tracking. */
148148
private isTrackingDisabled(): boolean {
149149
return !canTrack(this.consent.level);
150150
}

0 commit comments

Comments
 (0)