Skip to content

Commit

Permalink
frontend: fix compile error due to bad type
Browse files Browse the repository at this point in the history
This failed to compile due to a mis-match of types with TypeScript 4.x.
fixes #168.
  • Loading branch information
cardoe committed Nov 2, 2021
1 parent 3344881 commit 48dc388
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion {{cookiecutter.project_slug}}/frontend/src/views/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const Home: FC = () => {
const message = await getMessage();
setMessage(message);
} catch (err) {
setError(err);
setError(String(err));
}
};

Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_slug}}/frontend/src/views/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const Login: FC = () => {
setError(err.message);
} else {
// handle errors thrown from backend
setError(err);
setError(String(err));
}
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const SignUp: FC = () => {
setError(err.message);
} else {
// handle errors thrown from backend
setError(err);
setError(String(err));
}
}
}
Expand Down

0 comments on commit 48dc388

Please sign in to comment.