This has happened to me before, it's a harmless glitch.
I needed to restart my Tamagotchi because of this, as I waited around a week, and it still didn't evolve. If you wouldn't mind restarting, I think it would be a good idea. If you do restart, your Tamagotchi should go back to normal and start evolving like normal again.