Skip to content

Commit

Permalink
uncapitalized reject
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpigeon committed Feb 4, 2020
1 parent ef39673 commit 03be145
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/utils/eeg/cortex.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ class Cortex extends EventEmitter {
const token = this.getUserLogin()
.then(users => {
if (users.length === 0) {
return Promise.Reject(new Error("No logged in user"));
return Promise.reject(new Error("No logged in user"));
}
return this.requestAccess({ clientId, clientSecret });
})
.then(({ accessGranted }) => {
if (!accessGranted) {
return Promise.Reject(
return Promise.reject(
new Error("Please approve this application in the EMOTIV app")
);
}
Expand Down

0 comments on commit 03be145

Please sign in to comment.