Haha, I know the feeling. :p
I think it wouldn’t have been an issue if you weren’t able to accidently break the blocks while being in the shop tough. One tip I can give for the future: in most engines you can make UI Elements stop the mouse so it’s impossible to click things underneath them. Otherwise, if you’d used an Input Action system you could have simply disabled the mining input while inside the shop.