Wednesday, May 25, 2022

Logic = hard

 d.results.length > 0 ? this.existingAddresses = true : this.existingAddresses = false

Thursday, May 19, 2022

Variable abuse

let checkForHighlight = true;

for (let rows of this.tableBody.nativeElement.children)
{
    if (checkForHighlight && rows.classList.contains('alert-warning'))
    {
        checkForHighlight = false;
    }
}

if (!checkForHighlight)
{
    this.showQuantityWarning = true;
}
else
{
    this.showQuantityWarning = false;
}