🐞 fix: Get rid of SonarLint style conflict error

This commit is contained in:
Keith Solomon
2025-02-09 09:47:56 -06:00
parent 1c7f43d7b1
commit 2740050965
2 changed files with 6 additions and 4 deletions

View File

@@ -111,6 +111,7 @@ document.addEventListener('DOMContentLoaded', () => {
document.getElementById('editFormBillName').value = bill.billName;
// Open the modal
document.getElementById('editModal').classList.add('flex');
document.getElementById('editModal').classList.remove('hidden');
}
@@ -191,11 +192,12 @@ document.addEventListener('DOMContentLoaded', () => {
// Event listener for close button in the modal
document.getElementById('editFormCancel').addEventListener('click', () => {
// Close the modal
document.getElementById('editModal').classList.add('hidden');
// Clear modal fields
document.getElementById('editForm').reset();
// Close the modal
document.getElementById('editModal').classList.add('hidden');
document.getElementById('editModal').classList.remove('flex');
});
// On page load