Skip to content

Commit a381ac4

Browse files
committed
working
1 parent 24b5fcf commit a381ac4

File tree

1 file changed

+2
-2
lines changed
  • services/static-webserver/client/source/class/osparc/vipMarket

1 file changed

+2
-2
lines changed

services/static-webserver/client/source/class/osparc/vipMarket/VipMarket.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,10 @@ qx.Class.define("osparc.vipMarket.VipMarket", {
271271
}
272272
osparc.data.Resources.fetch("market", "purchase", params)
273273
.then(() => {
274-
const found = this.__anatomicalModels.find(model => model["ID"] === modelId);
274+
const found = this.__anatomicalModels.find(model => model["modelId"] === modelId);
275275
if (found) {
276276
const expirationDate = new Date();
277-
expirationDate.setMonth(expirationDate.getMonth() + 1)
277+
expirationDate.setMonth(expirationDate.getMonth() + 1); // rented for one month
278278
found["purchases"].push({
279279
expiresAt: expirationDate, // get this info from the response
280280
numberOfSeats, // get this info from the response

0 commit comments

Comments
 (0)