breastfeeding help!

Destiney

i started breastfeeding and she was latching fine the first 2 days. last night she wouldnt latch so i had to give her formula. this morning she latched again and hasnt wanted to relatch all day. what am i doing wrong ? am feeling defeated :(