From 687a4b78907d0f2c35c9928bacebadf1fd0d2f52 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Tue, 7 Jan 2025 17:16:31 +0100 Subject: [PATCH] fix --- frontend/src/components/Transaction.spec.js | 2 +- frontend/src/components/Transaction.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/Transaction.spec.js b/frontend/src/components/Transaction.spec.js index 6467151f3..d70c1aba8 100644 --- a/frontend/src/components/Transaction.spec.js +++ b/frontend/src/components/Transaction.spec.js @@ -345,7 +345,7 @@ describe('Transaction', () => { }) it('has the description gdt.contribution', () => { - expect(wrapper.findAll('div.row').at(0).text()).toContain('gdt.contribution') + expect(wrapper.findAll('div.row').at(0).text()).toContain('This is a comment') }) it('renders the amount of euros', () => { diff --git a/frontend/src/components/Transaction.vue b/frontend/src/components/Transaction.vue index 09e721401..0551f8a18 100644 --- a/frontend/src/components/Transaction.vue +++ b/frontend/src/components/Transaction.vue @@ -91,7 +91,7 @@ const getLinesByType = computed(() => { icon: 'heart', iconclasses: 'gradido-global-color-accent', iconColor: '4', - description: t('gdt.contribution'), + description: props.comment, // t('gdt.contribution'), descriptiontext: n(props.amount, 'decimal') + ' €', credittext: n(props.gdt, 'decimal') + ' GDT', }