Stopped finger sucking

After our pedo dentist said my daughter was at risk of braces to avoid thumb sucking teeth, finally she stopped sucking her fingers through the day. She will still do it at night from time to time, but I think its mostly while she’s asleep. I was happy she quit but she had to go through a bit of teasing at school to finally stop. We had tried many different things to get her to stop but nothing seemed to work. We started realizing it wasn’t happening during the day so we asked her about it and she said a kid at school teased her so she didn’t do it at school anymore. It broke my heart but I think it was for the best to get her to finally stop.