(do something) on the spot
To do something "on the spot" means to do it immediately. You can use "on the spot" to talk about making a decision quickly. For example:
I asked her to marry me, and she said yes on the spot.
It's common to add "right there":
After I heard that, I decided "I've had it!" and I quit right there on the spot.