Skip to content

Commit

Permalink
fix: config -> requestConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
abulte committed Jun 3, 2024
1 parent c5c9282 commit f8def37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/api/DatagouvfrAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export default class DatagouvfrAPI {
/**
* Make a `method` request to URL and optionnaly attach a toaster to the error
*/
async request(config: RequestConfig): Promise<AxiosResponseData> {
const response = await axios(config).catch((error: AxiosError) => {
async request(requestConfig: RequestConfig): Promise<AxiosResponseData> {
const response = await axios(requestConfig).catch((error: AxiosError) => {
if (this.toasted && config.toasted === true) {
toast(error.message, { type: 'error', autoClose: false })
}
Expand Down

0 comments on commit f8def37

Please sign in to comment.