tolulope-od/banka

View on GitHub
www/js/accounts.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function fetchAccounts has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const fetchAccounts = () => {
  para.innerHTML = '';
  para.innerHTML =
    '<center><img src="https://res.cloudinary.com/tolulope-od/image/upload/v1557908999/loading_o1y5v6.gif" width="150" /></center>';
  modalContent.appendChild(para);
Severity: Major
Found in www/js/accounts.js - About 2 hrs to fix

    Function fetchSingleAccount has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const fetchSingleAccount = event => {
      const reference = event.target.getAttribute('data-account-number');
      const accountNumber = parseInt(reference, 10);
      localStorage.setItem('banka-account-number', accountNumber);
      event.preventDefault();
    Severity: Minor
    Found in www/js/accounts.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status