Skip to content

Commit

Permalink
prettier lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rye-rice committed Nov 14, 2024
1 parent 46f7740 commit 51bfc19
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions tgui/packages/tgui/interfaces/OutpostCommunications/Catalog.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,21 +115,28 @@ export const CargoCatalog = (props, context) => {
<Button
fluid
tooltip={pack.desc}
color={pack.discountedcost || pack.faction_locked ? "green" : "default"}
color={
pack.discountedcost || pack.faction_locked
? 'green'
: 'default'
}
tooltipPosition="left"
onClick={() =>
act('add', {
ref: pack.ref,
})
}
>
{pack.discountedcost ?
' (-' + pack.discountpercent +'%) ' + pack.discountedcost:
formatMoney(
(self_paid && !pack.goody) || app_cost
? Math.round(pack.cost * 1.1)
: pack.cost
)}
{pack.discountedcost
? ' (-' +
pack.discountpercent +
'%) ' +
pack.discountedcost
: formatMoney(
(self_paid && !pack.goody) || app_cost
? Math.round(pack.cost * 1.1)
: pack.cost
)}
{' cr'}
</Button>
</Table.Cell>
Expand Down

0 comments on commit 51bfc19

Please sign in to comment.