Content pfp
Content
@
0 reply
0 recast
0 reaction

artlu 🎩 pfp
artlu 🎩
@artlu
how are y'all doing `sdk.actions.viewProfile()` ? I'm on @farcaster/frame-sdk v0.0.24 and my compiler says the property does not exist
4 replies
0 recast
8 reactions

artlu 🎩 pfp
artlu 🎩
@artlu
upgraded to v0.0.26 (h/t @jvaleska.eth and @stephancill). this snippet works well for me (h/t @haole for helping me ensure my code is smooth on /recaster) const viewProfile = useCallback( (fid: number, username?: string) => { const profileUrl = username ? `https://warpcast.com/${username}` : `https://vasco.wtf/${fid}`; context?.client?.clientFid === 9152 // check if Warpcast ? sdk.actions.viewProfile({ fid }) : context ? sdk.actions.openUrl(profileUrl) : window.open(profileUrl, "_blank"); }, [context] );
0 reply
1 recast
2 reactions