Skip to content

Commit 56a0c2a

Browse files
committed
fix
1 parent a706636 commit 56a0c2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
} else {
5050
theme <- get(theme_parts[1], mode = "function")
5151
}
52-
} else if (!is.function(theme) || !"theme" %in% class(theme)) {
52+
} else if (!is.function(theme) && !"theme" %in% class(theme)) {
5353
insight::format_error(
5454
"Plot theme must be a function, or a string naming a theme function."
5555
)

0 commit comments

Comments
 (0)