Skip to content

Commit c82d3ea

Browse files
committed
Solved bug
1 parent 9d5826b commit c82d3ea

File tree

1 file changed

+3
-1
lines changed
  • packages/nextjs/app/profile/[address]

1 file changed

+3
-1
lines changed

packages/nextjs/app/profile/[address]/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const ProfilePage: NextPage = () => {
3030
const [username, setUsername] = useState("");
3131
const [bio, setBio] = useState("");
3232
const [profilePicture, setProfilePicture] = useState<string>("");
33+
const [email, setEmail] = useState<string>("");
3334
const [isEditing, setIsEditing] = useState(false); // New state for edit mode
3435
const [articles, setArticles] = useState<Post[]>([]);
3536
const [loading, setLoading] = useState(true);
@@ -89,7 +90,7 @@ const ProfilePage: NextPage = () => {
8990

9091
await punkProfileWriteAsync({
9192
functionName: "setProfile",
92-
args: [username, bio, profilePicture],
93+
args: [username, bio, profilePicture, email],
9394
});
9495

9596
notification.success("Profile Edited Successfully");
@@ -253,6 +254,7 @@ const ProfilePage: NextPage = () => {
253254
<div className="flex-grow text-center md:mx-auto mt-4 md:mt-0">
254255
<>
255256
<InputBase placeholder="Your Bio" value={bio} onChange={setBio} />
257+
<InputBase placeholder="Your Email" value={email} onChange={setEmail} />
256258
</>
257259
</div>
258260
) : (

0 commit comments

Comments
 (0)