mirror of
https://github.com/desktop/desktop
synced 2024-10-31 11:07:25 +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) => {
|
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 === '' ||
|
||||||
|
|
Loading…
Reference in a new issue