I cloned Rarible in 24H - Part3: 2 errors -- Solved

Hi,

After clicking the Save button and entering the saveUserInfo function i get this error…
afbeelding

I had to add this line at start of this function…

	const user = await Moralis.User.current();

Then the save works !

Also the alert in the catch of the login function must become:

		alert(error.message);
2 Likes