There is a visual issue where the energy numbers do not reflect the actual value of the energy.

The energy is calculated and used normally in the background. If you see a popup to buy more energy, then all available energy was spent, but the numbers were not updated and shows a wrong value.

The team is investigating this issue, meanwhile, restarting the game will fix this and will show the correct amount of energy.