Skip to content

Commit bc32b3d

Browse files
committed
fix typo
1 parent c514602 commit bc32b3d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/gitment.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class Gitment {
9898
link: replacedUrl,
9999
}, options)
100100

101-
this.state.user.loginning = true
101+
this.state.user.isLoggingIn = true
102102
http.post('https://gh-oauth.imsun.net', {
103103
code,
104104
client_id,
@@ -109,7 +109,7 @@ class Gitment {
109109
this.update()
110110
})
111111
.catch(e => {
112-
this.user.loginning = false
112+
this.state.user.isLoggingIn = false
113113
alert(e)
114114
})
115115
} else {

src/theme/default.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ function renderEditor({ user }, instance) {
199199
? `<a class="gitment-editor-avatar" href="${user.html_url}" target="_blank">
200200
<img class="gitment-editor-avatar-img" src="${user.avatar_url}"/>
201201
</a>`
202-
: user.loginning
202+
: user.isLoggingIn
203203
? `<div class="gitment-editor-avatar">${spinnerIcon}</div>`
204204
: `<a class="gitment-editor-avatar" href="${instance.loginLink}" title="login with GitHub">
205205
${githubIcon}
@@ -215,8 +215,8 @@ function renderEditor({ user }, instance) {
215215
<div class="gitment-editor-login">
216216
${ user.login
217217
? '<a class="gitment-editor-logout-link">Logout</a>'
218-
: user.loginning
219-
? 'Loginning...'
218+
: user.isLoggingIn
219+
? 'Logging in...'
220220
: `<a class="gitment-editor-login-link" href="${instance.loginLink}">Login</a> with GitHub`
221221
}
222222
</div>

0 commit comments

Comments
 (0)