chuksjoe/AutoMart_UI

View on GitHub
UI/js/admin.js

Summary

Maintainability
A
1 hr
Test Coverage

Showing 1 of 1 total issue

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/admin.js and 4 other locations - About 1 hr to fix
UI/js/my-profile.js on lines 276..281
UI/js/purchase-history.js on lines 221..226
UI/js/sales-history.js on lines 148..153
UI/js/users-list.js on lines 197..202
Category
Status