mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
added default action on click user preview component
This commit is contained in:
parent
5b980c1c8c
commit
e80c221579
@ -34,8 +34,8 @@ export default (props) => {
|
||||
|
||||
const handleOnClick = async () => {
|
||||
if (typeof props.onClick !== "function") {
|
||||
console.warn("UserPreview: onClick is not a function")
|
||||
return
|
||||
console.warn("UserPreview: onClick is not a function, executing default action")
|
||||
return app.goToAccount(userData.username)
|
||||
}
|
||||
|
||||
return await props.onClick(userData)
|
||||
|
Loading…
x
Reference in New Issue
Block a user