add comment

This commit is contained in:
Emma Eilefsen Glenna committed 2024-01-25 19:01:45 +00:00
1 parent 57a6c412d5
commit 90558a3a28
1 file changed
+2
@@ -53,6 +53,8 @@ export const useRegister = () => {
setOrder(newOrder);
};
// This value does not interact with the backend or any financial logic.
// It is only used for rendering the sum total in the browser. The actual total is handled entirely by the backend.
const total = Number(sumTotal(products, order, selectedUser === USER_EXTERNAL).toFixed(2));
const onSubmit = async () => {