Skip to content

Commit

Permalink
Fixes blank Personal Access Token Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
RonLek committed Jan 19, 2021
1 parent f0e703f commit 5e4ef69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/views/account/tokens/AddToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const AddToken = ({ onDidAddToken, ...props }) => {
<Margins inlineEnd='x4'>
<TextInput value={name} onChange={handleName} placeholder={t('API_Add_Personal_Access_Token')}/>
</Margins>
<Button primary onClick={handleAdd}>{t('Add')}</Button>
<Button primary disabled={name.length === 0} onClick={handleAdd}>{t('Add')}</Button>
</Field.Row>
<Field.Row>
<CheckBox id={bypassTwoFactorCheckboxId} checked={bypassTwoFactor} onChange={handleBypassTwoFactor} />
Expand Down

0 comments on commit 5e4ef69

Please sign in to comment.