diff --git a/frontend/src/components/Contributions/OpenCreationsAmount.vue b/frontend/src/components/Contributions/OpenCreationsAmount.vue
index 62c240afd..5f49f5474 100644
--- a/frontend/src/components/Contributions/OpenCreationsAmount.vue
+++ b/frontend/src/components/Contributions/OpenCreationsAmount.vue
@@ -14,9 +14,9 @@
{{ maxGddLastMonth > 0 ? $t('contribution.submit') : $t('maxReached') }}
- {{ (1000 - maxGddLastMonth) / 20 }} {{ $t('h') }}
+ {{ hoursSubmittedLastMonth }} {{ $t('h') }}
- {{ maxGddLastMonth / 20 }} {{ $t('h') }}
+ {{ hoursAvailableLastMonth }} {{ $t('h') }}
@@ -25,9 +25,9 @@
{{ maxGddThisMonth > 0 ? $t('contribution.submit') : $t('maxReached') }}
- {{ (1000 - maxGddThisMonth) / 20 }} {{ $t('h') }}
+ {{ hoursSubmittedThisMonth }} {{ $t('h') }}
- {{ maxGddThisMonth / 20 }} {{ $t('h') }}
+ {{ hoursAvailableThisMonth }} {{ $t('h') }}
@@ -40,5 +40,19 @@ export default {
maxGddLastMonth: { type: Number, required: true },
maxGddThisMonth: { type: Number, required: true },
},
+ computed: {
+ hoursSubmittedThisMonth() {
+ return (1000 - this.maxGddThisMonth) / 20
+ },
+ hoursSubmittedLastMonth() {
+ return (1000 - this.maxGddLastMonth) / 20
+ },
+ hoursAvailableThisMonth() {
+ return this.maxGddThisMonth / 20
+ },
+ hoursAvailableLastMonth() {
+ return this.maxGddLastMonth / 20
+ },
+ },
}