Skip to content

Commit

Permalink
improve API handling
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierZal committed Nov 13, 2023
1 parent 6bf6890 commit 059e041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mixins/withAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type APIClass = new (...args: any[]) => {
api: AxiosInstance
}

export function getAPIErrorMessage(error: AxiosError): string {
function getAPIErrorMessage(error: AxiosError): string {
return error.message
}

Expand Down

0 comments on commit 059e041

Please sign in to comment.