So to get to the point, I was wiring up LED high hat lights and I powered lights from a 2-way switch, which was getting power from an outlet. The switch got power from a white wire that was acting as a hot but was not taped with black tape. Not thinking, I didn’t realize this. So when I wired up my LED lights, I ran the white wire (which was hot, not neutral) to the white wires in the LEDs, and the hot black wire to the black wires in the LED lights. When I flicked it on, clearly something was wrong and the lights were very dim and fluttering. I turned it off shortly after and realized what I had done. I fixed my mistake and rewired the outlet that was powering the switch, turned the white wire back into a neutral, and everything works great now.
I am posting because I am wondering if there was any permanent damage from what I did? Is there a risk of fire due to my mistake? Is the 14/2 Romex damaged internally at all or the LED lights from receiving two sets of hot? Or should I chalk this up as a lesson learned?