fix: correct title of profile creation page

This commit is contained in:
Prad Nukala
2024-12-11 13:26:26 -05:00
parent 305efbea5d
commit 0d4f2946f3
6 changed files with 14 additions and 13 deletions
@@ -8,11 +8,11 @@ import (
"github.com/labstack/echo/v4"
"github.com/onsonr/sonr/crypto/mpc"
"github.com/onsonr/sonr/pkg/common/response"
"golang.org/x/exp/rand"
)
func HandleCreateProfile(c echo.Context) error {
return response.TemplEcho(c, ProfileFormView(randomCreateProfileData()))
d := randomCreateProfileData()
return response.TemplEcho(c, ProfileFormView(d))
}
func HandlePasskeyStart(c echo.Context) error {
@@ -47,10 +47,3 @@ func HandlePasskeyFinish(c echo.Context) error {
}
return response.TemplEcho(c, LoadingVaultView())
}
func randomCreateProfileData() CreateProfileData {
return CreateProfileData{
FirstNumber: rand.Intn(5) + 1,
LastNumber: rand.Intn(4) + 1,
}
}