Skip to content

Commit

Permalink
fix cost -> price
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelljkotler committed Nov 29, 2023
1 parent 77dd08b commit 9d11296
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/addons/dispatch/Premium.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
$: isIndividualOrg =
typeof user?.organization !== "string" && user?.organization?.individual;
$: isPremium = addon?.parameters?.categories?.includes("premium") ?? false;
const { amount, unit, cost } = addon?.parameters?.cost ?? {};
const { amount, unit, price } = addon?.parameters?.cost ?? {};
function toggleSpendingLimit(
event: Event & { currentTarget: HTMLInputElement },
Expand Down Expand Up @@ -153,7 +153,7 @@
{#if amount}
<h3 class="prettyCost">
{$_("addonDispatchDialog.cost", {
values: { amount: amount, unit: unit, cost: cost || 1},
values: { amount: amount, unit: unit, price: price || 1},
})}
</h3>
{/if}
Expand Down
2 changes: 1 addition & 1 deletion src/addons/fixtures/addons.json
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@
"cost": {
"unit": "document",
"amount": 1,
"cost": 14
"price": 14
},
"categories": ["ai", "premium"],
"properties": {
Expand Down
2 changes: 1 addition & 1 deletion src/langs/json/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@
"runSuccess": "Add-on is now running",
"selectionHelp": "From the main list, select individual documents or run a search for the documents you want, for example “+project:mueller-docs-200005”.",
"selectionLearnMore": "Learn more about how Add-Ons work",
"cost": "{amount} {unit} per {cost, plural, one {credit} other {# credits}}",
"cost": "{amount} {unit} per {price, plural, one {credit} other {# credits}}",
"premiumUpgrade": {
"message": "This Premium Add-On uses AI to perform advanced analysis. Upgrade to a {plan} account to utilize this and other powerful Add-Ons.",
"callToAction": "Upgrade Plan",
Expand Down

0 comments on commit 9d11296

Please sign in to comment.