diff --git a/src/web/pages/quotes.rs b/src/web/pages/quotes.rs index 7295b37..89a1132 100644 --- a/src/web/pages/quotes.rs +++ b/src/web/pages/quotes.rs @@ -73,7 +73,7 @@ pub async fn page( div class="flex justify-between items-center mt-4 text-neutral-400" { @if page > 1 { - a href=(format!("/quotes?page={}", (page - 1).min(1))) class="px-4 py-2 border border-neutral-200/25 hover:border-neutral-200/45 bg-neutral-200/5 hover:bg-neutral-200/15 rounded" { + a href=(format!("/quotes?page={}", (page - 1).max(1))) class="px-4 py-2 border border-neutral-200/25 hover:border-neutral-200/45 bg-neutral-200/5 hover:bg-neutral-200/15 rounded" { "Previous" } } @else {