Skip to content

Commit

Permalink
fix: PDE rating system
Browse files Browse the repository at this point in the history
  • Loading branch information
Valkyr-JS committed Jun 17, 2024
1 parent 56053d4 commit 18060e4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plugins/PerformerDetailsExtended/PerformerDetailsExtended.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
var DetailItem_1 = __importDefault(__webpack_require__(645));
var React = window.PluginApi.React;
var ItemAverageRating = function (props) {
var _a;
// Get the user's rating system
var ratingSystem = props.configurationQueryResult.ui
.ratingSystemOptions;
var defaultRatingSystem = {
type: "stars",
starPrecision: "full",
};
var ratingSystem = ((_a = props.configurationQueryResult.ui) === null || _a === void 0 ? void 0 : _a.ratingSystemOptions) || defaultRatingSystem;
// Get the rating for each scene
var scenes = props.scenesQueryResult.scenes;
var sceneRatings = scenes
Expand Down

0 comments on commit 18060e4

Please sign in to comment.