Weight Gain in the Second Trimester

Kendra • 3 m/c and 4 years ttc before 🌈💙 who is now just over 2 1/2 and I also have a little boy who will be 1 in March!
Help! This is my first baby, and I was fine for my first trimester and the first month of my second trimester, but now I'm 23 +5 and I've gained 24lbs, and no, it's not just the way my body is in pregnancy, I just cannot stop eating sugar! It's killing me.. I'm pretty sure all the chocolate I'm eating is what is giving me serious heartburn too... I ate so healthy pre-pregnancy (I even did a month long sugar cleanse the month before finding out I was pregnant) and I worked out, but right now I eat bad, have no motivation, and just feel bad about myself 😞 I so badly wanted to feed my baby boy the right nutrients, and I'm still trying to work those in around the junk.. but this is just not the way I thought I would be handling food, especially after waiting so long for this sweet baby, I thought I would be able to do better for him..
P.S.
I know I'm not at a terrible weight place yet, but with my doc recommended 25-35 lbs and I'm already at 24, and our boy still has another 8ish lbs to gain, at the rate I'm going I'm looking at probably gaining a decent amount more..