how to get rid of button click

Dear team,

     As title, sometimes if the button click twice then it will report error about the smart service repeatedly running the second time and running error, how to get rid such kind of bug?

Thanks

  Discussion posts and replies are publicly visible