Skip to content

Commit

Permalink
Fix use of rlang::is_string() inside of toggle_switch() (#792)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert authored Sep 11, 2023
1 parent bb648bc commit 2573d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/input-switch.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ toggle_switch <- function(id, value = NULL, session = get_current_session()) {
abort("`value` must be a `NULL` or a single logical value.")
}

if (!rlang::is_string(id, n = 1)) {
if (!rlang::is_string(id)) {
abort("`id` must be a single string containing the `id` of a switch input.")
}

Expand Down

0 comments on commit 2573d2d

Please sign in to comment.