diff --git a/web/src/page/register.rs b/web/src/page/register.rs index fc9a2c38..854ce58d 100644 --- a/web/src/page/register.rs +++ b/web/src/page/register.rs @@ -8,6 +8,12 @@ macro_rules! get_ref { } } +macro_rules! reset_ref { + ($r:ident) => { + $r.get().map(|x| x.set_value("")) + } +} + // TODO this should get moved in a common crate so its not duplicated across FE/BE #[derive(Debug, Clone, serde::Serialize)] pub struct RegisterForm { @@ -34,6 +40,7 @@ pub fn RegisterPage() -> impl IntoView {