revert accident

This commit is contained in:
Greg Johnston 2023-02-18 16:03:20 -05:00
parent 884dacbc6c
commit 59ad6a4725

View file

@ -97,10 +97,10 @@ pub fn Counter(cx: Scope) -> impl IntoView {
|_| get_server_count(), |_| get_server_count(),
); );
let value = move || counter.read(cx).map(|count| count.unwrap_or(0)).unwrap_or(0); let value = move || counter.read().map(|count| count.unwrap_or(0)).unwrap_or(0);
let error_msg = move || { let error_msg = move || {
counter counter
.read(cx) .read()
.map(|res| match res { .map(|res| match res {
Ok(_) => None, Ok(_) => None,
Err(e) => Some(e), Err(e) => Some(e),
@ -143,7 +143,7 @@ pub fn FormCounter(cx: Scope) -> impl IntoView {
let value = move || { let value = move || {
log::debug!("FormCounter looking for value"); log::debug!("FormCounter looking for value");
counter counter
.read(cx) .read()
.map(|n| n.ok()) .map(|n| n.ok())
.flatten() .flatten()
.map(|n| n) .map(|n| n)