1
0
Fork 0

chore(shared): Linter issues

This commit is contained in:
Joost De Cock 2023-09-01 19:14:03 +02:00
parent 2d753aa0ef
commit d09c7b29f1
3 changed files with 2 additions and 72 deletions

View file

@ -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 }
}