diff --git a/services/tenant-ui/frontend/src/components/LoginForm.vue b/services/tenant-ui/frontend/src/components/LoginForm.vue index 82790fce4..3d895e279 100644 --- a/services/tenant-ui/frontend/src/components/LoginForm.vue +++ b/services/tenant-ui/frontend/src/components/LoginForm.vue @@ -110,15 +110,12 @@ const handleSubmit = async (isFormValid: boolean) => { tenantStore.getTenantConfig(), tenantStore.getIssuanceStatus(), ]); - const rejected = results.filter( - (result): result is PromiseRejectedResult => - result.status === 'rejected' - ); - - if (rejected.length > 0) { - console.error(rejected); - throw new Error(rejected[0].reason); - } + // if any the Tenant details fetch fails, throw the first error + results.forEach((result) => { + if (result.status === 'rejected') { + throw result.reason; + } + }); } catch (err) { console.error(err); toast.error(`Failure getting tenant info: ${err}`); diff --git a/services/tenant-ui/frontend/src/components/innkeeper/tenants/Tenants.vue b/services/tenant-ui/frontend/src/components/innkeeper/tenants/Tenants.vue index 605d03ddf..dd7711090 100644 --- a/services/tenant-ui/frontend/src/components/innkeeper/tenants/Tenants.vue +++ b/services/tenant-ui/frontend/src/components/innkeeper/tenants/Tenants.vue @@ -40,8 +40,7 @@ diff --git a/services/tenant-ui/frontend/src/components/innkeeper/tenants/editConfig/editConfig.vue b/services/tenant-ui/frontend/src/components/innkeeper/tenants/editConfig/editConfig.vue index ccf8ac60c..680048df4 100644 --- a/services/tenant-ui/frontend/src/components/innkeeper/tenants/editConfig/editConfig.vue +++ b/services/tenant-ui/frontend/src/components/innkeeper/tenants/editConfig/editConfig.vue @@ -14,7 +14,7 @@ @update:visible="handleClose" > @@ -23,6 +23,9 @@ diff --git a/services/tenant-ui/frontend/src/components/profile/issuance/Endorser.vue b/services/tenant-ui/frontend/src/components/profile/issuance/Endorser.vue index 94c3210e9..c022bbe09 100644 --- a/services/tenant-ui/frontend/src/components/profile/issuance/Endorser.vue +++ b/services/tenant-ui/frontend/src/components/profile/issuance/Endorser.vue @@ -31,13 +31,13 @@

- + {{ $t('profile.connectTenantToEndorserNotAllowed') }}