As a side note, this solution wouldn't have been sufficient as the button would still be disabled when this modal was re-invoked.