Skip to content

Commit

Permalink
Added type cast to value.
Browse files Browse the repository at this point in the history
  • Loading branch information
fvlvte committed Nov 21, 2023
1 parent 0d5a1ee commit 713a12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/HttpUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function processHTTPRequest(url: string, method: RequestType = 'get', body: Form
CONST.HTTP_STATUS.GATEWAY_TIMEOUT,
CONST.HTTP_STATUS.UNKNOWN_ERROR,
];
if (serviceInterruptedStatuses.indexOf(response.status) > -1) {
if (serviceInterruptedStatuses.indexOf(response.status as ValueOf<typeof CONST.HTTP_STATUS>) > -1) {
throw new HttpsError({
message: CONST.ERROR.EXPENSIFY_SERVICE_INTERRUPTED,
status: response.status.toString(),
Expand Down

0 comments on commit 713a12c

Please sign in to comment.