Skip to content

Commit c11d531

Browse files
committed
More compile fixes
1 parent 2db5c14 commit c11d531

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.tool-versions

Whitespace-only changes.

governance/xc_admin/packages/xc_admin_frontend/pages/index.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@ import '../mappings/signers.json'
1616

1717
const readPublisherKeyToNameMapping = (filename: string) => {
1818
if (fs.existsSync(filename)) {
19-
return YAML.parse(fs.readFileSync(filename, 'utf8')).reduce((acc, rec) => {
20-
acc[rec.key] = rec.name
21-
return acc
22-
})
19+
return YAML.parse(fs.readFileSync(filename, 'utf8')).reduce(
20+
(acc: { [key: string]: string }, rec: { key: string; name: string }) => {
21+
acc[rec.key] = rec.name
22+
return acc
23+
},
24+
{}
25+
)
2326
} else {
24-
return {} as { string: string }
27+
return {}
2528
}
2629
}
2730

0 commit comments

Comments
 (0)