mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 19:14:16 +00:00
added default action on click user preview component
This commit is contained in:
parent
26c7ce0c5b
commit
72f9ec52be
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user