When I switch between buying and selling, the transaction is not cleared. I’ve fixed this by clearing the transaction when switching modes. Not sure if you fix this later in the course.
1 Like
Hmmm… you’re quite right! I never noticed this, since… well, since I never tried.
The fix is actually quite simple: Go to Shop.SelectMode() and add this line to the beginning:
transaction.Clear();
This will clear the transaction, and all should be well.
2 Likes
Thanks Brian!
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.