mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
fix props checking
This commit is contained in:
parent
fd99ec2f2b
commit
1571aa09b9
@ -13,7 +13,7 @@ export default (props) => {
|
||||
let [userData, setUserData] = React.useState(props.user)
|
||||
|
||||
const fetchUser = async () => {
|
||||
if (!props.user_id || props.username) {
|
||||
if (!props.user_id && !props.username) {
|
||||
console.error("Cannot fetch user data without user_id or username")
|
||||
return false
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user