Steps to reproduce the issue:
  1. as organization, purchase a certain amount of licenses for a given course
2 assign one license to a space with at least one member (screenshot 1)
  1. open the course within the space and assign a license to a member (screenshot 2)
Expected behaviour
: the number of available licenses goes to zero
Actual behaviour
: the number of available licenses is still one (screenshot 3)
Note: when clicking on adding members (licenses) to course (screenshot 4), the correct number of available licenses is displayed (screenshot 5)