Fix error check for App component
This commit is contained in:
parent
78f258495d
commit
e8f73dbaa8
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user