Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/build/addons.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'react-dom'), 'version' => '420f1c9f4729f3e8b3b8');
<?php return array('dependencies' => array('react', 'react-dom'), 'version' => 'f46d5c5ad569eec97295');
2 changes: 1 addition & 1 deletion frontend/build/addons.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion frontend/build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'react-dom'), 'version' => 'e0eba8597c172fe672c9');
<?php return array('dependencies' => array('react', 'react-dom'), 'version' => 'f40c486d18d63dc31146');
2 changes: 1 addition & 1 deletion frontend/build/index.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion frontend/src/components/FeaturedCarousel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ export default function FeaturedCarousel({ loading = false }) {
const price = formatPluginPrice(plugin, freeLabel, uiI18n);
const fullPriceAmount = getFullPrice(plugin);
const discountPct = getDiscountPercentage(plugin);
const hasDiscount = plugin.licenseType === "premium" && fullPriceAmount && discountPct > 0;
const hasFreeTrialPeriod = plugin.i18n?.freeTrialPeriod && plugin.i18n.freeTrialPeriod.trim() !== '';
const hasFreeTrialText = plugin.i18n?.freeTrialText && plugin.i18n.freeTrialText.trim() !== '';
const hasDiscount = plugin.licenseType === "premium" && fullPriceAmount && discountPct > 0 && !hasFreeTrialPeriod && !hasFreeTrialText;
const mainImage = plugin.bannerUrl || plugin.image || plugin.thumbnail || 'https://gravity.group.one/guide-images/product-image@2x.png';

// Extract category name from plugin categories array
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/components/MarketPlace.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,9 @@ export default function Marketplace() {
const fullPriceAmount = getFullPrice(plugin);
const rebatePriceAmount = getRebatePrice(plugin);
const discountPct = getDiscountPercentage(plugin);
const hasDiscount = plugin.licenseType === "premium" && fullPriceAmount && rebatePriceAmount && discountPct > 0;
const hasFreeTrialPeriod = plugin.i18n?.freeTrialPeriod && plugin.i18n.freeTrialPeriod.trim() !== '';
const hasFreeTrialText = plugin.i18n?.freeTrialText && plugin.i18n.freeTrialText.trim() !== '';
const hasDiscount = plugin.licenseType === "premium" && fullPriceAmount && rebatePriceAmount && discountPct > 0 && !hasFreeTrialPeriod && !hasFreeTrialText;
return (
<div
key={plugin.slug}
Expand Down
Loading