Fixed modal closing bug by essentially using a copied version of offer in confirm. This works because as soon as an offer's status changes, it is moved to the proper tab and the list available to the current tab is now empty, resulting in the "save called on null" error.
Also added feature that the offer page tab will automatically switch to 'ARCHIVE' to follow the displayed offer (now that it's cancelled).
Also, should I be adding a (e2e or unit) test to check cancelling the last offer works?
Fixed modal closing bug by essentially using a copied version of offer in confirm. This works because as soon as an offer's status changes, it is moved to the proper tab and the list available to the current tab is now empty, resulting in the "save called on null" error. Also added feature that the offer page tab will automatically switch to 'ARCHIVE' to follow the displayed offer (now that it's cancelled).
Also, should I be adding a (e2e or unit) test to check cancelling the last offer works?