fix some lints

This commit is contained in:
Paul Miller
2023-05-08 21:08:56 -05:00
parent cf57b60f2a
commit 60765183e3
12 changed files with 25 additions and 25 deletions

View File

@@ -14,9 +14,7 @@ async function generateGradientFromHashedString(str: string) {
}
export async function gradientsPerContact(contacts: ContactItem[]) {
//
// let gradients: { [key: string]: string } = {};
let gradients = new Map();
const gradients = new Map();
for (const contact of contacts) {
const gradient = await generateGradientFromHashedString(contact.name);
gradients.set(contact.id, gradient);