Skip to content

Commit 82b9b4a

Browse files
committed
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.
1 parent 3344881 commit 82b9b4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • {{cookiecutter.project_slug}}/frontend/src/views

{{cookiecutter.project_slug}}/frontend/src/views/Login.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const Login: FC = () => {
5151
setError(err.message);
5252
} else {
5353
// handle errors thrown from backend
54-
setError(err);
54+
setError(String(err));
5555
}
5656
}
5757
};

0 commit comments

Comments
 (0)