Skip to content

Commit

Permalink
fix: update err type
Browse files Browse the repository at this point in the history
  • Loading branch information
schettn authored Sep 12, 2021
1 parent 202d691 commit 685bc9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jaen/src/store/actions/authActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const login = createAsyncThunk(
}

return {session, isGuest}
} catch (err) {
} catch (err: any) {
// Use `err.response.data` as `action.payload` for a `rejected` action,
// by explicitly returning it using the `rejectWithValue()` utility
return thunkAPI.rejectWithValue(err.response.data)
Expand All @@ -50,7 +50,7 @@ export const logout = createAsyncThunk('auth/logout', async (_, thunkAPI) => {
const session = Bridge.session.begin()

return session
} catch (err) {
} catch (err: any) {
// Use `err.response.data` as `action.payload` for a `rejected` action,
// by explicitly returning it using the `rejectWithValue()` utility
return thunkAPI.rejectWithValue(err.response.data)
Expand Down

0 comments on commit 685bc9e

Please sign in to comment.