Pass pubkey to nip 55 signer to avoid mixing up sessions

This commit is contained in:
Jon Staab
2025-10-13 11:20:01 -07:00
parent bbab2e0628
commit 5c03ff3e29
4 changed files with 16 additions and 84 deletions
+1 -1
View File
@@ -622,7 +622,7 @@ export const sortBy = <T>(f: (x: T) => any, xs: T[]) =>
* @param xs - Array to group
* @returns Map of groups
*/
export const groupBy = <T, K>(f: (x: T) => K, xs: T[]) => {
export const groupBy = <T, K>(f: (x: T) => K, xs: Iterable<T>) => {
const r = new Map<K, T[]>()
for (const x of xs) {