diff --git a/frontend/src/pages/Settings/Settings.jsx b/frontend/src/pages/Settings/Settings.jsx index a4fa21c1..4c71a6bf 100644 --- a/frontend/src/pages/Settings/Settings.jsx +++ b/frontend/src/pages/Settings/Settings.jsx @@ -701,15 +701,22 @@ const Settings = () => { + setCountry(e.target.value)} + onChange={(e) => { + const value = e.target.value; + + if (/^[A-Za-z\s'-]*$/.test(value)) { + setCountry(value); + } + }} placeholder="Enter Country" className="w-full bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-lg py-2.5 px-4 text-sm text-slate-900 dark:text-white" /> + -