Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
detects the error i see "unauthorized" and triggers a cafe session re…
Browse files Browse the repository at this point in the history
…fresh in that case

Signed-off-by: andrew <[email protected]>
  • Loading branch information
andrewxhill committed Jun 8, 2019
1 parent 08fb739 commit 6545fb5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions App/Sagas/TextileEventsSagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ export function* refreshMessages() {
yield call(logNewEvent, 'refreshMessages', action.type)
} catch (error) {
yield call(logNewEvent, 'refreshMessages', error.message, true)
if (error.message === 'unauthorized') {
yield put(accountActions.refreshCafeSessionsRequest())
}
}
}
}
Expand Down

0 comments on commit 6545fb5

Please sign in to comment.