From e226a37251682249b85b977dece2ef56ecf4ee69 Mon Sep 17 00:00:00 2001
From: Cory McWilliams <cory@unprompted.com>
Date: Fri, 9 May 2025 19:54:12 -0400
Subject: [PATCH] prettier

---
 apps/ssb/tf-app.js | 23 +++++++++++++++--------
 1 file changed, 15 insertions(+), 8 deletions(-)

diff --git a/apps/ssb/tf-app.js b/apps/ssb/tf-app.js
index a424aadfd..0b84ee242 100644
--- a/apps/ssb/tf-app.js
+++ b/apps/ssb/tf-app.js
@@ -167,16 +167,23 @@ class TfElement extends LitElement {
 			if (ids.indexOf(id) == -1) {
 				delete cache.about[id];
 			} else {
-				users[id] = Object.assign(
-					users[id] || {},
-					cache.about[id]
-				);
+				users[id] = Object.assign(users[id] || {}, cache.about[id]);
 			}
 		}
 
-		let ids_out_of_date = ids.filter(x => cache.about[x]?.seq === undefined || (users[x]?.seq && users[x]?.seq > cache.about[x].seq));
+		let ids_out_of_date = ids.filter(
+			(x) =>
+				cache.about[x]?.seq === undefined ||
+				(users[x]?.seq && users[x]?.seq > cache.about[x].seq)
+		);
 
-		console.log('loading about for', ids.length, 'accounts', ids_out_of_date.length, 'out of date');
+		console.log(
+			'loading about for',
+			ids.length,
+			'accounts',
+			ids_out_of_date.length,
+			'out of date'
+		);
 		if (ids_out_of_date.length) {
 			try {
 				let rows = await tfrpc.rpc.query(
@@ -219,12 +226,12 @@ class TfElement extends LitElement {
 			if (!cache.about[id]?.seq) {
 				cache.about[id] = {seq: users[id]?.seq ?? 0};
 			}
-		};
+		}
 
 		let new_cache = JSON.stringify(cache);
 		if (new_cache != original_cache) {
 			let start_time = new Date();
-			tfrpc.rpc.databaseSet('about', new_cache).then(function() {
+			tfrpc.rpc.databaseSet('about', new_cache).then(function () {
 				console.log('saving about took', (new Date() - start_time) / 1000);
 			});
 		}