Skip to content

Commit

Permalink
fix(tooling): typo preventing "global" typecheck on app packages
Browse files Browse the repository at this point in the history
  • Loading branch information
steinerkelvin committed Oct 15, 2024
1 parent 36387e9 commit c0b1958
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/commune-governance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "next dev --port 3001",
"lint": "eslint",
"start": "next start",
"type-check": "tsc --noEmit"
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@commune-ts/api": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion apps/commune-page/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "next dev --port 3000",
"lint": "eslint",
"start": "next start",
"type-check": "tsc --noEmit"
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@commune-ts/ui": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion apps/commune-validator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dev": "next dev --port 3002",
"lint": "eslint",
"start": "next start",
"type-check": "tsc --noEmit",
"typecheck": "tsc --noEmit",
"with-env": "dotenv -e ../../.env --"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/commune-wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "next dev --port 3008",
"lint": "eslint",
"start": "next start",
"type-check": "tsc --noEmit"
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@commune-ts/providers": "workspace:*",
Expand Down
3 changes: 2 additions & 1 deletion packages/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ export function handleDaos(
}

export const copyToClipboard = (text: string) => {
// @ts-expect-error navigator is a global object
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
navigator.clipboard.writeText(text);
};
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"format": "prettier --check . --ignore-path ../../.gitignore",
"lint": "eslint",
"tailwind:watch": "tailwindcss -i ./src/style.css -o ./src/output.css --watch",
"type-check": "tsc --noEmit"
"typecheck": "tsc --noEmit"
},
"prettier": "@commune-ts/prettier-config",
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/wallet/src/components/wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ export function Wallet() {
}, [selectedAccount]);

useEffect(() => {
const freeBalance = fromNano(balance ?? 0);
const stakedBalance = fromNano(userStakeWeight ?? 0);
const freeBalance = Number(fromNano(balance ?? 0));
const stakedBalance = Number(fromNano(userStakeWeight ?? 0));
const availablePercentage =
(freeBalance * 100) / (stakedBalance + freeBalance);

Expand Down

0 comments on commit c0b1958

Please sign in to comment.