No, you haven’t ruined them. It’s normal for terps to shift late flower – many strains lose their “candy” smell mid-ripen and take on grassy or earthy tones, especially as pistils darken. Smell will come back during drying and especially curing, as long as you harvest at the right time and dry slow.