Skip to content

Commit 76ed866

Browse files
committed
chore: Fix email query extraction logic
1 parent 15f6816 commit 76ed866

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/app/[id]/ConnectEmails.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import { useCreateBlueprintStore } from '../create/[id]/store';
1010

1111
const ConnectEmails = () => {
1212
const { setFile, setStep } = useProofStore();
13-
const store = useCreateBlueprintStore();
14-
console.log(store)
13+
const blueprint = useProofStore((state) => state.blueprint);
1514

1615
const { googleLogIn } = useGoogleAuth();
1716

@@ -31,13 +30,13 @@ const ConnectEmails = () => {
3130
<span className="font-bold text-grey-900">Email Query: </span>
3231
<span className="inline-flex items-center gap-2">
3332
<code>
34-
{store?.emailQuery}
33+
{blueprint?.props?.emailQuery}
3534
</code>
3635
<Button
3736
variant="outline"
3837
size="smIcon"
3938
onClick={() => {
40-
navigator.clipboard.writeText(store?.emailQuery || '');
39+
navigator.clipboard.writeText(blueprint?.props?.emailQuery || '');
4140
toast.success('Copied to clipboard!');
4241
}}
4342
>

0 commit comments

Comments
 (0)