chore(shared): Linter issues
This commit is contained in:
parent
2d753aa0ef
commit
d09c7b29f1
3 changed files with 2 additions and 72 deletions
|
@ -60,7 +60,7 @@ const api = {
|
|||
* Helper method to handle the response and verify that it was successful
|
||||
*/
|
||||
const responseHandler = (response, expectedStatus = 200, expectData = true) => {
|
||||
if (resonse && response.status === expectedStatus) {
|
||||
if (response && response.status === expectedStatus) {
|
||||
if (!expectData || response.data) {
|
||||
return { success: true, data: response.data, response }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue