Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
1 change: 0 additions & 1 deletion .yarnrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
--add.exact true
ignore-scripts true
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
"eslint-plugin-react": "7.35.0",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-unused-imports": "4.1.3",
"husky": "8.0.1",
"husky": "8.0.3",
"jest": "29.2.0",
"jest-environment-jsdom": "29.2.2",
"lint-staged": "10.0.10",
Expand All @@ -221,6 +221,11 @@
"preset": "emotion"
}
},
"husky": {
"hooks": {
"pre-commit": "npm run lint-staged"
}
},
"resolutions": {
"@babel/traverse": ">=7.23.2",
"port-sdk/@saberhq/token-utils": "1.12.53",
Expand Down
5 changes: 2 additions & 3 deletions stores/useGovernanceAssetsStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ const useGovernanceAssetsStore = create<GovernanceAssetsStore>((set, _get) => ({
accounts.push(...governedTokenAccounts)
const stakeAccounts = await loadStakeAccounts(
connection,
governedTokenAccounts.filter(
(x) => x.isSol
)
governedTokenAccounts.filter((x) => x.isSol)
)
accounts.push(...stakeAccounts)

Expand Down Expand Up @@ -774,6 +772,7 @@ const loadMintGovernanceAccounts = async (
const possibleMintAccount = possibleMintAccounts[index]
const pk = possibleMintAccountPks[index]
if (possibleMintAccount) {
// @ts-ignore
const data = Buffer.from(possibleMintAccount.data)
const parsedMintInfo = parseMintAccountData(data) as MintInfo
const ownerGovernance = governances.find(
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11066,10 +11066,10 @@ humanize-ms@^1.2.1:
dependencies:
ms "^2.0.0"

husky@8.0.1:
version "8.0.1"
resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.1.tgz#511cb3e57de3e3190514ae49ed50f6bc3f50b3e9"
integrity sha512-xs7/chUH/CKdOCs7Zy0Aev9e/dKOMZf3K1Az1nar3tzlv0jfqnYtu235bstsWTmXOR0EfINrPa97yy4Lz6RiKw==
husky@8.0.3:
version "8.0.3"
resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.3.tgz#4936d7212e46d1dea28fef29bb3a108872cd9184"
integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==

hyphenate-style-name@^1.0.0:
version "1.0.4"
Expand Down