Skip to content

Commit 3f7402b

Browse files
committed
Return null after notifying bugsnag
How's this syntax, @hawkrives?
1 parent e450b47 commit 3f7402b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/views/help/wifi.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ export class ToolView extends React.Component<Props, State> {
5151

5252
this.setState(() => ({status: 'collecting', error: ''}))
5353
const [position, device] = await Promise.all([
54-
getPosition().catch(bugsnag.notify),
54+
getPosition().catch(error => {
55+
bugsnag.notify(error)
56+
return null
57+
}),
5558
collectData(),
5659
])
5760
this.setState(() => ({status: 'reporting'}))

0 commit comments

Comments
 (0)