Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazeim committed Nov 14, 2023
1 parent 2ef92ff commit e2ced3c
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions src/components/ComputeUnits/ComputeUnitsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ const ComputeUnitsTable = ({ chain }): JSX.Element => {
const hrefPath = fixedPath[endpoint]
? fixedPath[endpoint]
: camelToSnakeCase(endpoint);
let additionalInfo = dynamic
? `+${price} CU${price > 1 ? "s" : ""} per ${
DynamicPriceUnits?.[endpoint]
}`
: "0";
let additionalInfo = dynamic
? `+${price} CU${price > 1 ? "s" : ""} per ${
DynamicPriceUnits?.[endpoint]
}`
: "0";

if (endpoint === "getMultipleTokenPrices") {
additionalInfo = "+5, if you add the query parameter include=perecent_change";
}
if (endpoint === "getMultipleTokenPrices") {
additionalInfo = "+5, if you add the query parameter include=perecent_change";
}
return (
<tr key={`${endpoint}-${index}`}>
<td>
Expand All @@ -97,11 +97,7 @@ const ComputeUnitsTable = ({ chain }): JSX.Element => {
<td>{path}</td>
<td>{price}</td>
<td>
{dynamic
? `+${price} CU${price > 1 ? "s" : ""} per ${
DynamicPriceUnits?.[endpoint]
}`
: 0}
{additionalInfo}
</td>
<td>{rateLimitCost}</td>
</tr>
Expand Down

0 comments on commit e2ced3c

Please sign in to comment.