fix some lints

This commit is contained in:
Paul Miller
2023-05-08 21:08:56 -05:00
parent 7cb0b0ddb5
commit ffe4671750
12 changed files with 23 additions and 23 deletions

View File

@@ -2,8 +2,8 @@
export function downloadTextFile(content: string, fileName: string) {
const contentType = "application/json";
var a = document.createElement("a");
var file = new Blob([content], { type: contentType });
const a = document.createElement("a");
const file = new Blob([content], { type: contentType });
a.href = URL.createObjectURL(file);
a.download = fileName;
a.click();

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);