Skip to content

Commit c9d57b3

Browse files
committed
Refactoring service client
1 parent 94a31f6 commit c9d57b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/components/Client/Profile/Client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Client extends React.Component
1717
}
1818

1919
getClient(id) {
20-
ClientService.getClient(id).then((response) => {
20+
ClientService.find(id).then((response) => {
2121
this.setState({client: response.data.client.shift()});
2222
}).catch((error) => {
2323
this.setState({error: 'Error Found: Trying get client'});

app/services/Client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const Client = {
1818
return axios.get(this.getEntryPoint().join('/'), this.getConfig());
1919
},
2020

21-
getClient(id) {
21+
find(id) {
2222

2323
let url = this.getEntryPoint();
2424
url.push(id);

0 commit comments

Comments
 (0)