aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/PrintPreviewFooter.vue2
-rw-r--r--src/components/PrintPreviewHeader.vue2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/components/PrintPreviewFooter.vue b/src/components/PrintPreviewFooter.vue
index 3d1dd4c..670b82d 100644
--- a/src/components/PrintPreviewFooter.vue
+++ b/src/components/PrintPreviewFooter.vue
@@ -7,7 +7,7 @@
import User from "./../classes/user.js"
import axios from "axios"
- const user = ref()
+ const user = ref(new User())
// temporarily using this
// TODO: don't call api from PrintPreview
diff --git a/src/components/PrintPreviewHeader.vue b/src/components/PrintPreviewHeader.vue
index 62da945..f1af518 100644
--- a/src/components/PrintPreviewHeader.vue
+++ b/src/components/PrintPreviewHeader.vue
@@ -5,7 +5,7 @@
const props = defineProps(["invoice"])
- const user = ref()
+ const user = ref(new User())
// temporarily using this
// TODO: don't call api from PrintPreview