Skip to content
Snippets Groups Projects
Commit 5b164840 authored by meskio's avatar meskio :tent:
Browse files

Don't crash when there is no transaction

parent cc7dfb9f
Branches
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ import { printMoney, printDate, printTransactionID } from "../util";
function ShowTransaction() {
const { id } = useParams();
const [transaction, setTransaction] = useState({});
const [transaction, setTransaction] = useState({ ID: 0 });
let show_list;
switch (transaction.type) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment