I had to file an amend and I already received and spent my state refund. Do I owe the refund back and the extra or just the amount asked of me?

I spent my state refund. But it says I owe state. So would I have to pay back the refund and what I owe or just what I owe?