Skip to content

Commit

Permalink
Don't error when listing inscriptions in a block without inscriptions (
Browse files Browse the repository at this point in the history
  • Loading branch information
gmart7t2 authored Jan 27, 2025
1 parent bfcd096 commit 932691e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/inscriptions_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl InscriptionsBlockHtml {
more_inscriptions: bool,
page_index: u32,
) -> Result<Self> {
if inscriptions.is_empty() {
if page_index != 0 && inscriptions.is_empty() {
return Err(anyhow!("page index {page_index} exceeds inscription count"));
}

Expand Down

0 comments on commit 932691e

Please sign in to comment.