From 3e4ae9296b4e24ca881209a98e4f79fdad465941 Mon Sep 17 00:00:00 2001 From: Jordan Gerada <138688996+JordanGerada3@users.noreply.github.com> Date: Tue, 17 Sep 2024 13:44:57 +0200 Subject: [PATCH] fix: Include street number in OSP company details form (#1084) --- CHANGELOG.md | 10 ++++++++-- src/components/pages/OSPConsent/CompanyDetails.tsx | 5 ++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 212081e16..d8ca168e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ ## Unreleased +### Bugfixes + +- **OSP Consent form** + - Display invited company name in OSP consent form (Previously hard coded with 'BMW') [#1083](https://github.com/eclipse-tractusx/portal-frontend/pull/1083) + - Fixed missing street number in form [#1081](https://github.com/eclipse-tractusx/portal-frontend/issues/1081) + +## Unreleased 2.2.0-RC3 + ### Feature - **Roles and Permissions** @@ -40,8 +48,6 @@ - Fixed "None" selection issue in Technical Integration -> App Release Process [#1036](https://github.com/eclipse-tractusx/portal-frontend/issues/1036) - **Technical User Management** - Display technicalUserManagement button based on role validation [#1073](https://github.com/eclipse-tractusx/portal-frontend/pull/1073) -- **OSP Consent form** - - Display invited company name in OSP consent form (Previously hard coded with 'BMW') [#1083](https://github.com/eclipse-tractusx/portal-frontend/pull/1083) ## 2.2.0 diff --git a/src/components/pages/OSPConsent/CompanyDetails.tsx b/src/components/pages/OSPConsent/CompanyDetails.tsx index 4987cd026..83a81f265 100644 --- a/src/components/pages/OSPConsent/CompanyDetails.tsx +++ b/src/components/pages/OSPConsent/CompanyDetails.tsx @@ -209,7 +209,10 @@ export const CompanyDetails = ({ const tableData: TableType = { head: [t('osp.companyName'), companyDetails?.name ?? ''], body: [ - [t('osp.street'), companyDetails?.streetName ?? ''], + [ + t('osp.street'), + `${companyDetails?.streetName ?? ''} ${companyDetails?.streetNumber ?? ''}`, + ], [t('osp.zip'), companyDetails?.zipCode ?? ''], [t('osp.city'), companyDetails?.city ?? ''], [t('osp.region'), companyDetails?.region ?? ''],