From 82b9b4aa3dcf23c83a48169efed54e5d11f3d751 Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Mon, 1 Nov 2021 21:28:55 -0500 Subject: [PATCH] frontend: fix compile error due to bad type This failed to compile due to a mis-match of types with TypeScript 4.x. fixes #168. --- {{cookiecutter.project_slug}}/frontend/src/views/Login.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/frontend/src/views/Login.tsx b/{{cookiecutter.project_slug}}/frontend/src/views/Login.tsx index b791a2c1..26298c8a 100644 --- a/{{cookiecutter.project_slug}}/frontend/src/views/Login.tsx +++ b/{{cookiecutter.project_slug}}/frontend/src/views/Login.tsx @@ -51,7 +51,7 @@ export const Login: FC = () => { setError(err.message); } else { // handle errors thrown from backend - setError(err); + setError(String(err)); } } };