Skip to content

Commit

Permalink
chore: remove SHORTER_CURRENCY_DIGITS_ALLOWED (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahin-hq authored Feb 28, 2024
1 parent 0a25254 commit 72def28
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/connect/WalletCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const WalletCard = ({ wallet }: Props) => {
withTicker
ticker={wallet.currency()}
key={index}
maxDigits={constants.SHORTER_CURRENCY_DIGITS_ALLOWED}
maxDigits={constants.MAX_CURRENCY_DIGITS_ALLOWED}
tooltipPlacement='bottom-start'
/>
);
Expand Down
2 changes: 0 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const ARK_CONNECT_DEMO = 'https://demo.arkconnect.io';
// Using 9 considering that the minimum amount of ARK is 0.00000001 which
// is 8 digits in total.
const MAX_CURRENCY_DIGITS_ALLOWED = 9;
const SHORTER_CURRENCY_DIGITS_ALLOWED = 9;

const constants = {
SUPPORT_EMAIL,
Expand All @@ -27,7 +26,6 @@ const constants = {
PRIVACY_POLICY,
ARK_CONNECT,
MAX_CURRENCY_DIGITS_ALLOWED,
SHORTER_CURRENCY_DIGITS_ALLOWED,
ARK_CONNECT_DEMO,
};

Expand Down
2 changes: 1 addition & 1 deletion src/shared/components/button/RowLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export const RowLayout = forwardRef(function RowLayout(
<Amount
value={Number(item)}
maxDigits={
constants.SHORTER_CURRENCY_DIGITS_ALLOWED
constants.MAX_CURRENCY_DIGITS_ALLOWED
}
ticker={currency ?? ''}
withTicker={!!currency}
Expand Down

0 comments on commit 72def28

Please sign in to comment.