check branch name at beginning of method

This commit is contained in:
vaindil 2023-08-23 11:41:42 -04:00
parent 461e04df56
commit 39805e1ee1

View file

@ -349,6 +349,7 @@ export class CreateBranch extends React.Component<
*/ */
private checkBranchRules = async (branchName: string) => { private checkBranchRules = async (branchName: string) => {
if ( if (
this.state.branchName !== branchName ||
this.props.accounts.length === 0 || this.props.accounts.length === 0 ||
this.props.upstreamGitHubRepository === null || this.props.upstreamGitHubRepository === null ||
branchName === '' || branchName === '' ||