Uncaught TypeError: e.props.flagUser is not a function error shows up when users are trying to flag themselves.
We can either remove the flag icon if the user is the current user who is logged in or we can have a modal pop up saying something along the line 'you cannot flag yourself'.
Uncaught TypeError: e.props.flagUser is not a function
error shows up when users are trying to flag themselves.We can either remove the flag icon if the user is the current user who is logged in or we can have a modal pop up saying something along the line 'you cannot flag yourself'.