Last changes
This commit is contained in:
parent
130d4b149b
commit
0d58e68911
|
@ -35,7 +35,7 @@ const SoapboxMount = () => {
|
||||||
|
|
||||||
const soapboxConfig = useSoapboxConfig();
|
const soapboxConfig = useSoapboxConfig();
|
||||||
|
|
||||||
const showCaptcha = account && !account?.source?.ditto.captcha_solved;
|
const showCaptcha = account && account?.source?.ditto.captcha_solved === false;
|
||||||
const needsOnboarding = useAppSelector(state => state.onboarding.needsOnboarding);
|
const needsOnboarding = useAppSelector(state => state.onboarding.needsOnboarding);
|
||||||
const showOnboarding = account && needsOnboarding;
|
const showOnboarding = account && needsOnboarding;
|
||||||
|
|
||||||
|
|
|
@ -110,8 +110,9 @@ const baseAccountSchema = z.object({
|
||||||
nostr: z.object({
|
nostr: z.object({
|
||||||
nip05: z.string().optional().catch(undefined),
|
nip05: z.string().optional().catch(undefined),
|
||||||
}).optional().catch(undefined),
|
}).optional().catch(undefined),
|
||||||
ditto: z.object({
|
ditto: coerceObject({
|
||||||
captcha_solved: z.boolean().catch(true) }),
|
captcha_solved: z.boolean().catch(true),
|
||||||
|
}),
|
||||||
}).optional().catch(undefined),
|
}).optional().catch(undefined),
|
||||||
statuses_count: z.number().catch(0),
|
statuses_count: z.number().catch(0),
|
||||||
suspended: z.boolean().catch(false),
|
suspended: z.boolean().catch(false),
|
||||||
|
|
Loading…
Reference in New Issue