Here's how The Mindy Project ended

WARNING: This story is about HOW The Mindy Project series finale ended. So, yeah, there are spoilers. Enter at your own risk.

After six seasons — three on Fox, three on Hulu — The Mindy Project officially ended Tuesday.

Creator and star Mindy Kaling previously told EW the series finale would be “a big extravaganza,” and the episode delivered on her promise: First off, Morgan and Tamra got married — and then Morgan toasted to his new wife by leading a dance number to Jason Derulo’s “Want to Want Me.”

But most importantly, Mindy got to keep Later Baby. She thought she was going to have to shut it down after her partner Jody went off to Africa and decided to take out half his equity. But then Danny invested in the business, allowing it to survive — not because he wanted to control Mindy, as she initially suspected, but because he believed in her and didn’t want her business to die because of, as she put it earlier in the episode, “a white man’s whims.”

That act helped Mindy realize that she wanted to be with Danny, so she grabbed Morgan’s bike from outside the wedding reception and pedaled to the hospital (recalling a moment from the pilot), where Danny was with his mother, recovering from a mastectomy. Mindy says she came just to check on Annette; Annette knows that’s not the reason, so once Mindy leaves, she tells her son this.

Then, Danny finds Mindy in the breakroom, her arm stuck in a vending machine, and — once he helps her get free from the machine — asks her if she was going to say something, that he thought maybe she was going to say she loved him again.

“I never stopped loving you, and I don’t think I ever will,” she responds. Then they kiss, and they end the episode watching TV on the couch in the breakroom.

“I started the series thinking that people don’t really change that much, and if they do, it’s like 10 or 15 percent,” Kaling told EW at the start of the final season, “but by the end of the series, we’ve found Mindy’s changed a little bit more than that.”

The series finale of The Mindy Project, titled “It Had to Be You,” is now streaming on Hulu. Read more about the episode here.