Save Button not functioning well

I tried to save userinfo and when i click on save button, it will alert on my screen saying “user info saved successfully” but when i click on ok, i got this error on my console.

Uncaught (in promise) TypeError: userAvatarImg.url is not a function at openuserInfo (main.js:69)
openuserInfo	@	main.js:69
async function (async)		
openuserInfo	@	main.js:55
saveUserInfo	@	main.js:93