Skip to content

Commit

Permalink
Fix counters_isomorphic
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj committed Jan 2, 2023
1 parent d4b5b95 commit a2943c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/counter_isomorphic/src/counters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ pub fn Counter(cx: Scope) -> impl IntoView {
<span>"Value: " {move || value().to_string()} "!"</span>
<button on:click=move |_| inc.dispatch(())>"+1"</button>
</div>
{move || error_msg().map(|msg| view! { cx, <p>"Error: " {msg}</p>})}
{move || error_msg().map(|msg| view! { cx, <p>"Error: " {msg.to_string()}</p>})}
</div>
}
}
Expand Down

0 comments on commit a2943c4

Please sign in to comment.