Former NASCAR Danica Patrick was in the nation’s capital this past weekend to cover IndyCar’s Freedom 250 Grand Prix. Less than 24 hours later, she was in the hospital undergoing surgery.

Patrick received plenty of criticism for her commentary during the Freedom 250 Grand Prix. IndyCar fans didn’t exactly like that she was praising President Trump during the nationally-televised broadcast.

After her appearance on FOX, Patrick revealed that she had a “chunk of glass” removed from her left foot. This freak accident apparently happened over a year ago.

“Just a casual Tuesday morning surgery to remove a chunk of glass from a year ago,” Patrick wrote on her Instagram story. “The propofol wasn’t so bad.”

Feb 14, 2018; Daytona Beach, FL, USA; NASCAR Cup Series driver Danica Patrick (7) speaks to reporters during Daytona 500 Media Day at Daytona 500 Club. Mandatory Credit: Mike DiNovo-USA TODAY Sports

© Mike DiNovo-Imagn Images.

Patrick also revealed that she couldn’t walk barefoot due to her injury, which is a bit bizarre considering she was sporting heels on FOX’s pre-race set.

“I have no idea how I could walk in heels but I absolutely could not walk barefoot,” Patrick added. “Doc said it was hitting my bone. Danced too hard in Ibiza a few weeks ago and it got more painful everyday.”

Danica Patrick/Instagram.

Unfazed by the criticism.

After the Freedom 250 Grand Prix wrapped up, Patrick made it clear that she doesn’t care what her critics have to say.

“A new great American race in Washington DC,” Patrick wrote on Instagram. “What a spectacular event on the calendar this year to celebrate our nations 250th anniversary! I hope it stays on the schedule but if it doesn’t… yall did it right! Thanks to Bud Denker and Eric Shanks for dreaming it up and Sean Duffy and of course President Trump for getting it across the finish line to become a reality. Although it felt like more like a dream all day.”

Patrick is expected to remain part of FOX’s IndyCar coverage.