Skip to content

Commit

Permalink
chore(deps-dev): bump prettier from 3.0.3 to 3.3.2 (#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Jul 9, 2024
1 parent 9660793 commit da383d0
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 28 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"moxios": "^0.4.0",
"nodemon": "^3.0.1",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.3",
"prettier": "^3.3.2",
"react-error-overlay": "6.0.11",
"react-test-renderer": "^17.0.2",
"redux-mock-store": "^1.5.1",
Expand Down
9 changes: 4 additions & 5 deletions src/containers/Amendment/Votes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,10 @@ export const Votes = ({ data, validators }: VotesProps) => {

const getYeas = () =>
validators
.filter(
(validator) =>
data.voted?.validators.some(
(voted) => voted.signing_key === validator.signing_key,
),
.filter((validator) =>
data.voted?.validators.some(
(voted) => voted.signing_key === validator.signing_key,
),
)
.sort(compareValidators)

Expand Down
18 changes: 8 additions & 10 deletions src/containers/shared/components/Transaction/NFTokenMint/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,19 @@ export const parser: TransactionParser<NFTokenMint, NFTokenMintInstructions> = (

const previousTokenIDSet = new Set(
affectedNodes
.flatMap(
(node: any) =>
node.ModifiedNode?.PreviousFields?.NFTokens?.map(
(token: any) => token.NFToken.NFTokenID,
),
.flatMap((node: any) =>
node.ModifiedNode?.PreviousFields?.NFTokens?.map(
(token: any) => token.NFToken.NFTokenID,
),
)
.filter((id: any) => id),
)

const finalTokenIDs = affectedNodes
.flatMap(
(node: any) =>
(
node.ModifiedNode?.FinalFields ?? node.CreatedNode?.NewFields
)?.NFTokens?.map((token: any) => token.NFToken.NFTokenID),
.flatMap((node: any) =>
(
node.ModifiedNode?.FinalFields ?? node.CreatedNode?.NewFields
)?.NFTokens?.map((token: any) => token.NFToken.NFTokenID),
)
.filter((id: any) => id)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ export const parser = (tx: SetHook, meta: any): SetHookInstructions => {
(node.ModifiedNode?.LedgerEntryType === 'Hook' &&
!!node.ModifiedNode?.PreviousFields?.Hooks),
)
const hashes = affectedNodes.flatMap(
(node: any) =>
(
node.ModifiedNode?.FinalFields ?? node.CreatedNode?.NewFields
)?.Hooks?.map((hook: any) => hook.Hook.HookHash),
const hashes = affectedNodes.flatMap((node: any) =>
(node.ModifiedNode?.FinalFields ?? node.CreatedNode?.NewFields)?.Hooks?.map(
(hook: any) => hook.Hook.HookHash,
),
)
// TODO: there may be bugs here when a `HookHash` is already specified in a hook
// It's difficult to understand what situation that would be in, so this is left here for now
Expand Down

0 comments on commit da383d0

Please sign in to comment.