diff --git a/src/utils/api/Khronos/prediction/predictionApiWrapper.ts b/src/utils/api/Khronos/prediction/predictionApiWrapper.ts index 832f176f..3c0c0a01 100644 --- a/src/utils/api/Khronos/prediction/predictionApiWrapper.ts +++ b/src/utils/api/Khronos/prediction/predictionApiWrapper.ts @@ -27,7 +27,13 @@ export default class PredictionApiWrapper { } async getPredictionById(params: GetPredictionByIdRequest) { - await this.predictionApi.getPredictionById(params); + try { + const response = await this.predictionApi.getPredictionById(params); + return response; + } catch (error) { + console.error('Error fetching prediction by id:', error); + throw error; + } } async deletePrediction(params: RemovePredictionRequest) {