From ae55a345dbbbfcd544f7f182eda31f127801dfa0 Mon Sep 17 00:00:00 2001 From: Henry Date: Tue, 19 Jan 2021 23:01:09 -0800 Subject: [PATCH] add(anchorfm-params) required params on signup --- client/landing/gutenboarding/path.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/client/landing/gutenboarding/path.ts b/client/landing/gutenboarding/path.ts index 7ef8144a6dbef1..ba3473ae294547 100644 --- a/client/landing/gutenboarding/path.ts +++ b/client/landing/gutenboarding/path.ts @@ -112,8 +112,13 @@ export function useNewQueryParam() { } export function useIsAnchorFm(): boolean { - const { anchorFmPodcastId } = useAnchorFmParams(); - return Boolean( anchorFmPodcastId && anchorFmPodcastId.match( /^[0-9a-f]{7,8}$/i ) ); + const { anchorFmPodcastId, anchorFmEpisodeId, anchorFmSpotifyShowUrl } = useAnchorFmParams(); + return Boolean( + anchorFmPodcastId && + anchorFmPodcastId.match( /^[0-9a-f]{7,8}$/i ) && + anchorFmEpisodeId && + anchorFmSpotifyShowUrl + ); } export function useOnboardingFlow(): string {