From dbf58a9f09de070c12ba8edb8c34be6bc955fca0 Mon Sep 17 00:00:00 2001 From: jamesread Date: Tue, 24 Sep 2024 00:48:22 +0000 Subject: [PATCH] Add type to registration failure func --- apps/frontend/src/components/auth/register.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/frontend/src/components/auth/register.tsx b/apps/frontend/src/components/auth/register.tsx index 0f3d3cb4..cd10c7a8 100644 --- a/apps/frontend/src/components/auth/register.tsx +++ b/apps/frontend/src/components/auth/register.tsx @@ -65,7 +65,7 @@ export function Register() { ); } -function getHelpfulReasonForRegistrationFailure(httpCode) { +function getHelpfulReasonForRegistrationFailure(httpCode: int) { switch (httpCode) { case 400: return 'Email already exists';