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(
|
const handleClickWithFloat = useCallback(
|
||||||
(event: MouseEvent<HTMLButtonElement>) => {
|
(event: MouseEvent<HTMLButtonElement>) => {
|
||||||
if (state === null) {
|
if (!event.isTrusted || state === null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const rect = event.currentTarget.getBoundingClientRect();
|
const rect = event.currentTarget.getBoundingClientRect();
|
||||||
|
|||||||
Reference in New Issue
Block a user