CHICAGO: TikTok has settled a lawsuit brought by a minor who claimed the platform damaged his mental health, a spokesperson for a law firm representing the plaintiff said Tuesday. The settlement was reached in principle but the details have not yet been finalized, according to a spokesperson for Morgan & Morgan, which is representing the plaintiff. The agreement comes ahead of what is expected to be the second trial in California state court over social media’s role in the youth mental health crisis.

TikTok has reached a confidential settlement with a Florida teenager ahead of a July trial, following YouTube out of the second bellwether addiction case.

The case is part of litigation consolidating thousands of lawsuits alleging that several major social platforms used addictive designs that harmed young people’s mental health.