Skip to content

The agent that grows with you

fmt(js): `npm run fix` on merge (#108753)

hermes-seaeye[bot]0f1668ef76a4
diff --git a/apps/desktop/src/plugins/hermes-bots/pet.tsx b/apps/desktop/src/plugins/hermes-bots/pet.tsx
index dbbfe1bc91d..817b4662baa 100644
--- a/apps/desktop/src/plugins/hermes-bots/pet.tsx
+++ b/apps/desktop/src/plugins/hermes-bots/pet.tsx
@@ -48,16 +48,15 @@ function petThumbIcon(slug: string, spriteUrl: null | string | undefined): Promi
.then(result => (result?.ok && result.dataUri ? result.dataUri : null))
.catch(() => null),
deadline
- ])
- .then(icon => {
- // Never cache a failure: a transient backend error must not poison
- // the tile for the rest of the session.
- if (!icon) {
- petThumbCache.delete(slug)
- }
+ ]).then(icon => {
+ // Never cache a failure: a transient backend error must not poison
+ // the tile for the rest of the session.
+ if (!icon) {
+ petThumbCache.delete(slug)
+ }
- return icon
- })
+ return icon
+ })
petThumbCache.set(slug, pending)
}