Lost a token because of cancelled transaction

I canceled a transaction to buy a pet on my defi pet but still 3 dpet tokens were deducted from my balance. what happen?