Skip to content

Commit 9fa242e

Browse files
committed
Use contains
1 parent 5b94272 commit 9fa242e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

example_backend/examples/simple_button.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fn trigger_remote_toggle(
8585
mut commands: Commands,
8686
buttons: Query<(), With<ToggleButton>>,
8787
) {
88-
if buttons.get(click.entity).is_ok() {
88+
if buttons.contains(click.entity) {
8989
commands.client_trigger(RemoteToggle {
9090
entity: click.entity,
9191
});

0 commit comments

Comments
 (0)