Skip to content

Commit

Permalink
add babel.config.js, can't get jest working with vite rn :(
Browse files Browse the repository at this point in the history
  • Loading branch information
melkent committed Nov 2, 2024
1 parent 427cdfe commit 42d3153
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions frontend/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: [['@babel/preset-env', {targets: {node: 'current'}}]],
};
4 changes: 2 additions & 2 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ function App() {

const handleClickLogout = async () => {
try {
await logout();
navigate("/home");
await logout();
navigate("/home");
} catch (e) {
console.log("Failed to logout");
}
Expand Down

0 comments on commit 42d3153

Please sign in to comment.