ucdavis / payments

Accept and process credit card payments on campus
MIT License
2 stars 3 forks source link

Fix removal of last line item #258

Closed sprucely closed 4 years ago

sprucely commented 4 years ago

Don't call createNewItem() from within removeItem() because state changes from removeItem() have not had a chance to propagate to this.state, and createNewItem() ends up referencing stale state.

You may want to look at just commit 30612ab since inconsistent indentation needed to be corrected in editItemsTable.tsx.