chuksjoe/AutoMart_UI

View on GitHub
UI/js/purchase-history.js

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 2 of 2 total issues

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

closeNotifation.onclick = (e) => {
e.preventDefault();
notificationModal.style.display = 'none';
if (hasUpdatedInfo) autoRefresh(0);
toggleScroll();
Severity: Major
Found in UI/js/purchase-history.js and 4 other locations - About 1 hr to fix
UI/js/admin.js on lines 351..356
UI/js/my-profile.js on lines 276..281
UI/js/sales-history.js on lines 148..153
UI/js/users-list.js on lines 197..202

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

const options = {
method: 'PATCH',
body: JSON.stringify({ price: new_price }),
headers: { 'Content-Type': 'application/json', authorization: `Bearer ${token}` },
};
Severity: Major
Found in UI/js/purchase-history.js and 1 other location - About 1 hr to fix
UI/js/my-posted-ads.js on lines 82..86

There are no issues that match your filters.

Category
Status