- {{ $t('creation') }} {{ $t('(') }}{{ amount / 20 }} {{ $t('h') }}{{ $t(')') }}
+ {{ $t('creation') }} {{ $t('(') }}{{ hours }} {{ $t('h') }}{{ $t(')') }}
@@ -127,6 +127,7 @@ import { useAppToast } from '@/composables/useToast'
import { useI18n } from 'vue-i18n'
import { useLazyQuery } from '@vue/apollo-composable'
import AppAvatar from '@/components/AppAvatar.vue'
+import { GDD_PER_HOUR } from '../../constants'
const props = defineProps({
id: {
@@ -230,6 +231,8 @@ const username = computed(() => ({
initials: `${props.firstName[0]}${props.lastName[0]}`,
}))
+const hours = computed(() => parseFloat((props.amount / GDD_PER_HOUR).toFixed(2)))
+
watch(
() => visible.value,
() => {
diff --git a/frontend/src/components/Contributions/OpenCreationsAmount.vue b/frontend/src/components/Contributions/OpenCreationsAmount.vue
index 3a0b6ea5a..2b15bdc52 100644
--- a/frontend/src/components/Contributions/OpenCreationsAmount.vue
+++ b/frontend/src/components/Contributions/OpenCreationsAmount.vue
@@ -32,29 +32,29 @@