added default action on click user preview component

This commit is contained in:
srgooglo 2022-11-04 15:55:09 +00:00
parent 5b980c1c8c
commit e80c221579

View File

@ -34,8 +34,8 @@ export default (props) => {
const handleOnClick = async () => { const handleOnClick = async () => {
if (typeof props.onClick !== "function") { if (typeof props.onClick !== "function") {
console.warn("UserPreview: onClick is not a function") console.warn("UserPreview: onClick is not a function, executing default action")
return return app.goToAccount(userData.username)
} }
return await props.onClick(userData) return await props.onClick(userData)