Skip to content

Commit 23fcef4

Browse files
authored
Fix bug with yearly.seasonality = 1 (#2641)
1 parent bd73db8 commit 23fcef4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/R/prophet.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,9 +1003,9 @@ parse_seasonality_args <- function(m, name, arg, auto.disable, default.order) {
10031003
} else {
10041004
fourier.order <- default.order
10051005
}
1006-
} else if (arg == TRUE) {
1006+
} else if (isTRUE(arg)) {
10071007
fourier.order <- default.order
1008-
} else if (arg == FALSE) {
1008+
} else if (isFALSE(arg)) {
10091009
fourier.order <- 0
10101010
} else {
10111011
fourier.order <- arg

0 commit comments

Comments
 (0)