diff --git a/src/utils/api/Khronos/props/propsApiWrapper.ts b/src/utils/api/Khronos/props/propsApiWrapper.ts index 39a3269e..d3949d36 100644 --- a/src/utils/api/Khronos/props/propsApiWrapper.ts +++ b/src/utils/api/Khronos/props/propsApiWrapper.ts @@ -59,23 +59,11 @@ export default class PropsApiWrapper { * @returns A promise that resolves to the raw response from the API */ async setResult(params: SetPropResultRequest) { - try { - return await this.propsApi.setPropResult(params); - } catch (error: any) { - if (error?.response) { - const errorData = await error.response.json(); - throw new Error(errorData.message); - } - throw error; - } + return await this.propsApi.setPropResult(params); } async getPropsByPlayer(params: FindPropsByDescriptionRequest) { - try { - return await this.propsApi.findPropsByDescription(params); - } catch (error: any) { - throw error; - } + return await this.propsApi.findPropsByDescription(params); } async getStatsProps() {