fix: reject untrusted click events on the guild hall button (#105)

This commit is contained in:
2026-03-23 14:50:04 -07:00
committed by Naomi Carrigan
parent 830a9d2a56
commit 558b44e29a
+1 -1
View File
@@ -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();