Skip to content

Commit

Permalink
fix: don't crash if server returns null summary
Browse files Browse the repository at this point in the history
  • Loading branch information
awgaan authored and varl committed Mar 23, 2020
1 parent 2f9efb8 commit 4c89958
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const MyApp = () => {
return
}

if (summary.status == 'ERROR' && !newTask.error) {
if (summary && summary.status == 'ERROR' && !newTask.error) {
newTask.error = true
}

Expand Down Expand Up @@ -173,7 +173,7 @@ const MyApp = () => {
])

return (
<div>
<>
<CssReset />
{loading ? (
<ScreenCover>
Expand All @@ -190,7 +190,7 @@ const MyApp = () => {
</SchemeContext.Provider>
</UserContext.Provider>
)}
</div>
</>
)
}

Expand Down

0 comments on commit 4c89958

Please sign in to comment.