A $6 million lawsuit that the “State of Affairs” actress filed against the New York-based pharmacy chain in April has been dismissed, Heigl’s attorney told TheWrap on Wednesday.

Heigl voluntarily dismissed the suit after reaching a “beneficial agreement” with the company. While the terms of the agreement weren’t disclosed, the company did agree to donate to the Jason Debus Heigl Foundation. which promotes animal welfare.

“Katherine Heigl and Duane Reade have worked out a mutually beneficial agreement. Ms. Heigl has voluntarily dismissed her lawsuit, and Duane Reade has made a contribution to benefit the Jason Debus Heigl Foundation,” Heigl’s attorney told TheWrap in a statement. “The parties have agreed to keep the terms of the agreement confidential.”

The suit, filed in federal court in New York, has been dismissed with prejudice, meaning the actress may not sue the company over the same matter in the future.

Heigl sued Duane Reade after the company posted a paparazzi photo of the actress leaving a Duane Reade store on its Facebook and Twitter accounts. Heigl’s lawsuit claimed that the company used the photo to “imply falsely that Plaintiff endorses Defendant.”

In one case, according to the lawsuit, the company tweeted the photo with the message, “Love a quick #DuaneReade run? Even @KateHeigl can’t resist shopping #NYC’s favorite drugstore.”