change(ui): fix error printing

This commit is contained in:
nick-delirium 2023-03-23 13:54:14 +01:00 committed by Delirium
parent b02bf8c23d
commit 4bdb30daa3
2 changed files with 2 additions and 6 deletions

View file

@ -135,7 +135,7 @@ function HealthModal({
</Button>
</div>
) : null}
<Footer isSetup />
<Footer isSetup={isSetup} />
</div>
</div>
);

View file

@ -34,11 +34,7 @@ function SubserviceHealth({
{subservice?.details?.errors?.length ? (
<div className={'py-2 px-4 bg-white rounded-xl border border-light-gray'}>
<div>Error log:</div>
{subservice.details.errors.map((err: string, i) => (
<div className={'mt-2'} key={i + 1}>
{i + 1}. {err}
</div>
))}
{subservice.details.errors.toString()}
</div>
) : subservice?.health ? null : (
'Service not responding'