From 763dd5b6e2ee9504395dfe577fe26933fd636b7f Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 7 Jan 2025 17:16:10 -0600 Subject: [PATCH] Use dangerousIsType --- src/screens/Signup/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/screens/Signup/index.tsx b/src/screens/Signup/index.tsx index 5f406eb7ae..55367fa9e0 100644 --- a/src/screens/Signup/index.tsx +++ b/src/screens/Signup/index.tsx @@ -26,6 +26,7 @@ import {Divider} from '#/components/Divider' import {LinearGradientBackground} from '#/components/LinearGradientBackground' import {InlineLinkText} from '#/components/Link' import {Text} from '#/components/Typography' +import * as atp from '#/types/atproto' export function Signup({onPressBack}: {onPressBack: () => void}) { const {_} = useLingui() @@ -95,7 +96,10 @@ export function Signup({onPressBack}: {onPressBack: () => void}) { scrollable> {showStarterPackCard && - AppBskyGraphStarterpack.isRecord(starterPack.record) ? ( + atp.dangerousIsType( + starterPack.record, + AppBskyGraphStarterpack.isRecord, + ) ? (