Skip to content

Commit

Permalink
Fix condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
futursolo committed Apr 2, 2022
1 parent 9555d4a commit 5c86c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/yew/src/functional/mod.rs
Expand Up @@ -167,7 +167,7 @@ impl HookContext {
// Subsequent suspension,
// components can have less hooks called when suspended, but not more.
(false, Some(total_hook_counter)) => assert!(
self.counter > total_hook_counter,
self.counter <= total_hook_counter,
"Hooks are called conditionally."
),
}
Expand Down

0 comments on commit 5c86c50

Please sign in to comment.