Skip to content

Commit 91064c0

Browse files
authored
chore: fmt and add pkg (#3230)
2 parents 6a08b37 + 2369a86 commit 91064c0

File tree

7 files changed

+15
-9
lines changed

7 files changed

+15
-9
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ evm/contracts/proto/** linguist-generated
1515
*.lockb binary diff=lockb
1616
*.zip filter=lfs diff=lfs merge=lfs -text
1717
site/public/union-logo.zip filter=lfs diff=lfs merge=lfs -text
18+
biome.json linguist-language=JSON-with-Comments

app/src/lib/queries/balance/evm/multicall.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export async function erc20ReadMulticall({
5151
(accumulator, { result }, index) => {
5252
if (index % functionNames.length === 0) accumulator.push({})
5353

54-
const currentResult = accumulator[accumulator.length - 1]
54+
const currentResult = accumulator.at(-1)
5555
const fn = functionNames[index % functionNames.length]
5656
currentResult[fn === "balanceOf" ? "balance" : fn] = result ?? (fn === "decimals" ? 0 : "")
5757
return accumulator

biome.json

+1
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@
224224
"noSecrets": "off",
225225
"noProcessEnv": "off",
226226
"useStrictMode": "off",
227+
"useExplicitType": "off",
227228
"noNestedTernary": "off",
228229
"noExportedImports": "off",
229230
"useImportRestrictions": "off",

ceremony/src/lib/utils/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,5 +127,5 @@ export function formatWaitTime(minutes: number) {
127127
return parts[0]
128128
}
129129

130-
return `${parts.slice(0, -1).join(", ")} and ${parts[parts.length - 1]}`
130+
return `${parts.slice(0, -1).join(", ")} and ${parts.at(-1)}`
131131
}

dictionary.txt

+1
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ deferredacktypes
508508
defi
509509
delegators
510510
dels
511+
deno
511512
denoms
512513
denum
513514
depinject

flake.nix

+3-2
Original file line numberDiff line numberDiff line change
@@ -494,10 +494,11 @@
494494
yq
495495
])
496496
++ (with jsPkgs; [
497-
bun # for running TypeScript files on the fly
497+
bun
498+
deno
498499
emmet-language-server
499-
nodePackages.graphqurl
500500
nodePackages_latest.nodejs
501+
nodePackages_latest.graphqurl
501502
nodePackages_latest.svelte-language-server
502503
nodePackages_latest."@astrojs/language-server"
503504
nodePackages_latest."@tailwindcss/language-server"

site/src/lib/contentful/live-preview.ts

+7-5
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,13 @@ export function setupLivePreview({
4949
}) {
5050
const callback = (updatedData: any) => {
5151
const domElement = findElementByDataAttribute({ entryId, fieldId })
52-
if (domElement && updatedData.fields && updatedData.fields[fieldId]) {
53-
// Check if the content is text
54-
if (typeof updatedData.fields[fieldId] === "string") {
55-
domElement.textContent = updatedData.fields[fieldId]
56-
}
52+
if (
53+
domElement &&
54+
updatedData.fields &&
55+
updatedData.fields[fieldId] &&
56+
typeof updatedData.fields[fieldId] === "string"
57+
) {
58+
domElement.textContent = updatedData.fields[fieldId]
5759
}
5860
}
5961
const unsubscribe = ContentfulLivePreview.subscribe({

0 commit comments

Comments
 (0)