diff --git a/ts/features/fims/history/saga/handleExportFimsHistorySaga.ts b/ts/features/fims/history/saga/handleExportFimsHistorySaga.ts index a9b93e15640..1f87676f1ba 100644 --- a/ts/features/fims/history/saga/handleExportFimsHistorySaga.ts +++ b/ts/features/fims/history/saga/handleExportFimsHistorySaga.ts @@ -14,7 +14,7 @@ export function* handleExportFimsHistorySaga( action: ActionType ) { const exportHistoryRequest = exportHistory({ - Bearer: bearerToken + Bearer: `Bearer ${bearerToken}` }); try { diff --git a/ts/features/fims/history/saga/handleGetFimsHistorySaga.ts b/ts/features/fims/history/saga/handleGetFimsHistorySaga.ts index ab3a8e890d9..bb8aa5c843c 100644 --- a/ts/features/fims/history/saga/handleGetFimsHistorySaga.ts +++ b/ts/features/fims/history/saga/handleGetFimsHistorySaga.ts @@ -23,7 +23,7 @@ export function* handleGetFimsHistorySaga( ); const getHistoryRequest = getFimsHistory({ - Bearer: bearerToken, + Bearer: `Bearer ${bearerToken}`, "Accept-Language": preferredLanguage, page: action.payload.continuationToken }); @@ -42,7 +42,7 @@ export function* handleGetFimsHistorySaga( trackFailureIfNeeded(resultAction); yield* put(resultAction); } catch (e) { - const reason = JSON.stringify(e); + const reason = `${e} ${JSON.stringify(e)}`; trackHistoryFailure(reason); yield* put(fimsHistoryGet.failure(reason)); }