Skip to content

Commit 134cd8a

Browse files
committed
Fix confirmation count on newname.html
1 parent 633531d commit 134cd8a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/subcommands/server.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,11 @@ mod site {
236236
pubkey: XOnlyPublicKey,
237237
}
238238

239-
pub async fn new_name_form() -> Result<NewNameTemplate, WebError> {
240-
Ok(Default::default())
239+
pub async fn new_name_form(State(state): State<AppState>) -> Result<NewNameTemplate, WebError> {
240+
Ok(NewNameTemplate {
241+
confirmations: state.config.confirmations()?,
242+
..Default::default()
243+
})
241244
}
242245

243246
pub async fn new_name_submit(

0 commit comments

Comments
 (0)