Conditional finish assignment on button action not working as expected

We have a button Decline in one of the screens and on the actions, we have a local action and finish assignment when Decline Submitted, property which will set when the user clicks on submit in the local action. Is there a way to configure this in such a way that the finish assignment works conditionally.