Skip to content

Commit

Permalink
chore: cspell
Browse files Browse the repository at this point in the history
  • Loading branch information
zugdev committed Oct 15, 2024
1 parent 7dfa73b commit 71f126c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { ERC20Permit, ERC721Permit } from "@ubiquibot/permit-generation/types";
import { BigNumber, ethers } from "ethers";
import { app, AppState } from "../app-state";

// dinamically shortens a string by slicing and elipsing it's middle
// dynamically shortens a string by slicing and hiding the middle part
function shortenAddress(address: string): string {
const initialLength = 42; // address has 42 chars
const maxWidth = 570; // with to trigger shortning
const maxWidth = 570; // width to trigger shortening

if (window.innerWidth >= maxWidth) {
return address;
Expand Down

0 comments on commit 71f126c

Please sign in to comment.