chuksjoe/AutoMart_UI

View on GitHub
UI/js/marketplace.js

Summary

Maintainability
A
1 hr
Test Coverage

Showing 2 of 2 total issues

Identical blocks of code found in 2 locations. Consider refactoring.
Open

const options = {
method: 'POST',
body: JSON.stringify(data),
headers: { 'Content-Type': 'application/json', authorization: `Bearer ${token}` },
};
Severity: Minor
Found in UI/js/marketplace.js and 1 other location - About 50 mins to fix
UI/js/marketplace.js on lines 104..108

Identical blocks of code found in 2 locations. Consider refactoring.
Open

const options = {
method: 'POST',
body: JSON.stringify(data),
headers: { 'Content-Type': 'application/json', authorization: `Bearer ${token}` },
};
Severity: Minor
Found in UI/js/marketplace.js and 1 other location - About 50 mins to fix
UI/js/marketplace.js on lines 57..61
Category
Status