diff --git a/R/input-switch.R b/R/input-switch.R index d85ecdc46..2567fea8e 100644 --- a/R/input-switch.R +++ b/R/input-switch.R @@ -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.") }