Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Rejection (TypeError): Cannot read property 'length' of null #90

Open
coord-e opened this issue Sep 9, 2018 · 1 comment
Open
Labels
bug Something isn't working low priority This issue or pull request can be postponed

Comments

@coord-e
Copy link
Contributor

coord-e commented Sep 9, 2018

Step 1: 環境

Step 2: 問題

再現のための手順:

  1. .envはデフォルトで
  2. reCAPTCHA v3やる

どうなってしまうか:

Unhandled Rejection (TypeError): Cannot read property 'length' of null
CredentialObject.get
src/store/credential.js:19
  16 | }
  17 | 
  18 | @computed get isAbleToAuthenicate () {
> 19 |   return this.secretId.length !== 0 && this.recaptchaResponse.length !== 0
  20 | }
  21 | 
  22 | @action.bound setSecretId (secretId) {
View compiled
▶ 4 stack frames were collapsed.
CredentialObject.onChangeRecaptchaResponse
src/event/credential.js:53
  50 | 
  51 | onChangeRecaptchaResponse = (recaptchaResponse) => {
  52 |   this.store.credential.setRecaptchaResponse(recaptchaResponse)
> 53 |   if (this.store.credential.isAbleToAuthenicate) {
  54 |     this.onLogin()
  55 |   }
  56 | }
View compiled

どうなるべきだったのか:

  • 通る
@coord-e coord-e added the bug Something isn't working label Sep 9, 2018
@coord-e coord-e added the low priority This issue or pull request can be postponed label Sep 14, 2018
@coord-e
Copy link
Contributor Author

coord-e commented Sep 14, 2018

devenv絡みの問題なのでリリース後で

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working low priority This issue or pull request can be postponed
Projects
None yet
Development

No branches or pull requests

1 participant