Skip to content

Commit

Permalink
fix: ui display issue
Browse files Browse the repository at this point in the history
  • Loading branch information
naturexie committed Jan 15, 2025
1 parent c63e2b6 commit a58555f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions screens/Trading/components/tokenbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ const TradingToken: React.FC<TradingTokenInter> = ({
alt=""
src={selectedItem?.metadata?.icon}
style={{ width: "26px", height: "26px" }}
className="rounded-full"
/>
)}
</div>
Expand Down
1 change: 1 addition & 0 deletions screens/Trading/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ const Trading = () => {
alt=""
src={currentTokenCate1?.metadata?.icon}
style={{ width: "26px", height: "26px" }}
className="rounded-full"
/>
)}
<p className="ml-2 mr-3.5 text-lg">
Expand Down
2 changes: 1 addition & 1 deletion utils/beautyNumber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const beautifyPrice = (
decimalPlaces: number = 5,
digitsPlaces: number = 4,
) => {
if (!num) return "-";
if (!num && num !== 0) return "-";
let numStr = num.toString();
if (numStr.includes("e")) {
const [base, exp] = numStr.split("e");
Expand Down

0 comments on commit a58555f

Please sign in to comment.