From e551c5e8f3f2c704a2a4a37f98bc19b8490514a8 Mon Sep 17 00:00:00 2001 From: Joe Ardent Date: Mon, 11 Mar 2024 22:47:08 -0700 Subject: [PATCH] add annual link to the rendered signup page --- src/handlers/handlers.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/handlers/handlers.rs b/src/handlers/handlers.rs index b9fe1b7..f046e1f 100644 --- a/src/handlers/handlers.rs +++ b/src/handlers/handlers.rs @@ -33,9 +33,11 @@ lazy_static! { /// Displays the signup page with links to Stripe pub async fn get_signup() -> impl IntoResponse { + let annual_link = &*ANNUAL_LINK; + let monthly_link = &*MONTHLY_LINK; SignupPage { - monthly_link: Some((*MONTHLY_LINK).to_string()), - annual_link: Some((&*ANNUAL_LINK).to_string()), + monthly_link: Some(monthly_link.to_string()), + annual_link: Some(annual_link.to_string()), ..Default::default() } }