Skip to content

Commit

Permalink
fix: get statusCode from response
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Feb 2, 2020
1 parent f6cdb18 commit a07cb68
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const createGetTwitterVideo = ({ userAgent, getGuestToken }) => {
)

if (isFulfilled) return value.body
if (reason.statusCode === 404) return {}
if (reason.response.statusCode === 404) return {}
throw reason
}

Expand Down

0 comments on commit a07cb68

Please sign in to comment.