From 8aed0aa7f3ecb5814ac85e0a6eb57d4b0fa9540e Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Tue, 17 Oct 2023 09:56:48 -0700 Subject: [PATCH] Increase f2f location randomization radius --- frontend/src/components/Dialogs/F2fMap.tsx | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/Dialogs/F2fMap.tsx b/frontend/src/components/Dialogs/F2fMap.tsx index af8684ff..adf0a68e 100644 --- a/frontend/src/components/Dialogs/F2fMap.tsx +++ b/frontend/src/components/Dialogs/F2fMap.tsx @@ -43,10 +43,7 @@ const F2fMapDialog = ({ const onSave = () => { if (position && position[0] && position[1]) { - onClose([ - position[0] + Math.random() * 0.02 - 0.01, - position[1] + Math.random() * 0.02 - 0.01, - ]); + onClose([position[0] + Math.random() * 0.1 - 0.05, position[1] + Math.random() * 0.1 - 0.05]); } }; @@ -61,6 +58,7 @@ const F2fMapDialog = ({ return ( onClose()} aria-labelledby='worldmap-dialog-title' aria-describedby='worldmap-description' @@ -127,7 +125,16 @@ const F2fMapDialog = ({ - +