Fix error check for App component

This commit is contained in:
kPherox
2019-05-19 23:27:04 +09:00
parent 78f258495d
commit e8f73dbaa8

View File

@@ -48,7 +48,7 @@ export default class App extends Vue {
// TODO: アカウントか公開TLの追加を確認する。初回起動時のみ
if (this.isStartup) {
ipcRenderer.once('add-timeline', (_e: Event, tl?: TimelineDoc, error?: Error) => {
if (error === undefined || tl === undefined) {
if (error != undefined || tl === undefined) {
console.error(error)
return
}