Fix cached starter pack navigation

This commit is contained in:
vineyardbovines
2026-08-23 20:05:18 -04:00
parent 63f0d4d311
commit 4a7d667652
@@ -146,7 +146,10 @@ export function StarterPackScreenInner({
const isValid =
starterPack &&
(starterPack.list || starterPack?.creator?.did === currentAccount?.did) &&
bsky.matches(app.bsky.graph.defs.starterPackView, starterPack) &&
// Cards may precache a synthetic full view while navigating. Its list CID
// is intentionally empty until the server response replaces it, so use
// the trusted app-view discriminator here instead of strict validation.
bsky.isType(app.bsky.graph.defs.starterPackView, starterPack) &&
bsky.matches(app.bsky.graph.starterpack, starterPack.record)
if (!did || !starterPack || !isValid || !moderationOpts) {