mirror of
https://github.com/desktop/desktop
synced 2024-10-31 05:19:03 +00:00
check branch name at beginning of method
This commit is contained in:
parent
461e04df56
commit
39805e1ee1
1 changed files with 1 additions and 0 deletions
|
@ -349,6 +349,7 @@ export class CreateBranch extends React.Component<
|
|||
*/
|
||||
private checkBranchRules = async (branchName: string) => {
|
||||
if (
|
||||
this.state.branchName !== branchName ||
|
||||
this.props.accounts.length === 0 ||
|
||||
this.props.upstreamGitHubRepository === null ||
|
||||
branchName === '' ||
|
||||
|
|
Loading…
Reference in a new issue