+
) : (
@@ -37,6 +38,13 @@ const nodeTypes = {
};
const UserProgressFlow = ({ tasks }) => {
+ const [mounted, setMounted] = React.useState(false);
+
+ React.useEffect(() => {
+ setMounted(true);
+ return () => setMounted(false);
+ }, []);
+
const nodes = [
{
id: '1',
@@ -113,6 +121,8 @@ const UserProgressFlow = ({ tasks }) => {
},
];
+ if (!mounted) return
;
+
return (
{
edges={edges}
nodeTypes={nodeTypes}
fitView
- preventScrolling
- zoomOnScroll={false}
- panOnScroll={false}
nodesDraggable={false}
nodesConnectable={false}
elementsSelectable={false}
- minZoom={0.5}
- maxZoom={2}
+ panOnDrag={false}
+ zoomOnScroll={false}
+ panOnScroll={false}
+ selectNodesOnDrag={false}
+ preventScrolling
+ minZoom={1}
+ maxZoom={1}
+ defaultViewport={{ x: 0, y: 0, zoom: 1 }}
>
+ {/* */}
);
diff --git a/src/pages/api/auth/[...nextauth].js b/src/pages/api/auth/[...nextauth].js
index c3bd5ef..3b5c0b0 100644
--- a/src/pages/api/auth/[...nextauth].js
+++ b/src/pages/api/auth/[...nextauth].js
@@ -231,7 +231,8 @@ export const authOptions = {
purchased: fullUser.purchased,
nip05: fullUser.nip05,
lightningAddress: fullUser.lightningAddress,
- githubUsername: token.githubUsername
+ githubUsername: token.githubUsername,
+ createdAt: fullUser.createdAt
};
// Add GitHub account info to session if it exists
@@ -249,7 +250,6 @@ export const authOptions = {
return session;
},
async jwt({ token, user, account, profile, session }) {
- console.log("JWT", token, user, account, profile, session);
// If we are linking a github account to an existing email or anon account (we have privkey)
if (account?.provider === "github" && user?.id && user?.pubkey && user?.privkey) {
try {