Stuck on waitting for success in a transaction block

Can anyone help me with this problem please, I tried to put the Sui coin as a parameter in the function, sometimes I can get “console.log(“deal success”);”, but sometimes it doesn’t work at all(most of the time).
However, I can always find the successful result on Sui blockchain explorer. Here is how I write in .tsx file :