generated from nhcarrigan/template
fix: reject untrusted click events on the guild hall button (#105)
This commit is contained in:
@@ -42,7 +42,7 @@ const ClickArea = (): JSX.Element => {
|
||||
|
||||
const handleClickWithFloat = useCallback(
|
||||
(event: MouseEvent<HTMLButtonElement>) => {
|
||||
if (state === null) {
|
||||
if (!event.isTrusted || state === null) {
|
||||
return;
|
||||
}
|
||||
const rect = event.currentTarget.getBoundingClientRect();
|
||||
|
||||
Reference in New Issue
Block a user