Skip to content

Commit

Permalink
fix: removed premature freezing API change
Browse files Browse the repository at this point in the history
  • Loading branch information
arctic-hen7 committed Jan 13, 2023
1 parent 0b48598 commit 2a9bfde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/perseus/src/state/freeze.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub enum PageThawPrefs {
impl PageThawPrefs {
/// Checks whether or not the given URL should prioritize frozen state over
/// active state.
pub(crate) fn should_prefer_frozen_state(&self, url: &PathWithoutLocale) -> bool {
pub(crate) fn should_prefer_frozen_state(&self, url: &str) -> bool {
match &self {
// If we're only including some pages, this page should be on the include list
Self::Include(pages) => pages.iter().any(|v| v == url),
Expand Down

0 comments on commit 2a9bfde

Please sign in to comment.