Showing 10 of 10 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();
- Read upRead up
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();
- Read upRead up
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();
- Read upRead up
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();
- Read upRead up
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();
- Read upRead up
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}` }, };
- Read upRead up
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}` }, };
- Read upRead up
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}` }, };
- Read upRead up
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}` }, };
- Read upRead up
Avoid deeply nested control flow statements. Open
if (sel.checked) { variables.status = sel.value === 'on' ? null : sel.value; }