Or you could simplify the computed property definition using parenthesis, so you will keep the application’s context:
borrowingHistroy() {
return userData[this.userId].borrowingHistory
}
CLICK HERE to find out more related problems solutions.