Skip to content
Snippets Groups Projects
Commit a6a667f5 authored by john's avatar john
Browse files

kill the upload icon if ink call fails

parent 827775b0
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ class ChapterTitle extends React.Component {
renderHasContent () {
const { chapter, type } = this.props
const source = chapter.source
const source = chapter.source || ''
const hasContent = source.trim().length > 0
if (!hasContent) return null
......
......@@ -25,7 +25,7 @@ export class UploadButton extends React.Component {
update(chapter)
toggleUpload()
}).catch((error) => {
console.err('INK error', error)
console.error('INK error', error)
toggleUpload()
})
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment