From 3a9f4c4e381c0cd679e3d1c59b0eaa3c449a2883 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 5 Feb 2025 11:06:45 -0600 Subject: [PATCH] Use asPredicate --- src/state/queries/starter-packs.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/state/queries/starter-packs.ts b/src/state/queries/starter-packs.ts index 5b38b4de82..ec935836d3 100644 --- a/src/state/queries/starter-packs.ts +++ b/src/state/queries/starter-packs.ts @@ -4,6 +4,7 @@ import { AppBskyGraphGetStarterPack, AppBskyGraphStarterpack, AppBskyRichtextFacet, + asPredicate, AtUri, BskyAgent, RichText, @@ -368,7 +369,7 @@ export async function precacheStarterPack( starterPackView = starterPack } else if ( AppBskyGraphDefs.isStarterPackViewBasic(starterPack) && - AppBskyGraphStarterpack.isValidRecord(starterPack.record) + asPredicate(AppBskyGraphStarterpack.validateRecord)(starterPack.record) ) { const listView: AppBskyGraphDefs.ListViewBasic = { uri: starterPack.record.list,