Skip to content

Commit

Permalink
fix: validation issue when hydrated apikey is not of correct size in …
Browse files Browse the repository at this point in the history
…options page
  • Loading branch information
abhijithvijayan committed Jul 20, 2020
1 parent 684d054 commit c935ad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Options/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const Form: React.FC = () => {

const isFormValid: boolean =
((formStateValidity.apikey === undefined || formStateValidity.apikey) &&
formStateValues.apikey !== '' && // invalidate if api key is empty
formStateValues.apikey.trim().length === 40 && // invalidate if api key is empty
formStateErrors.apikey === undefined &&
(((formStateValidity.host === undefined || formStateValidity.host) &&
formStateErrors.host === undefined) ||
Expand Down

0 comments on commit c935ad2

Please sign in to comment.