diff --git a/frontend/app/components/profile/profile.module.css b/frontend/app/components/profile/profile.module.css
index 45796a7d..b2d4c9d0 100644
--- a/frontend/app/components/profile/profile.module.css
+++ b/frontend/app/components/profile/profile.module.css
@@ -67,6 +67,12 @@
padding: 0 16px 16px;
}
+.errorContent {
+ align-self: center;
+ text-align: center;
+ margin: auto;
+}
+
.error {
font-size: 14px;
margin: 0 0 4px;
@@ -168,7 +174,7 @@
}
.preloader {
- margin: 0 auto;
+ margin: auto;
color: var(--color13);
}
diff --git a/frontend/app/components/profile/profile.spec.tsx b/frontend/app/components/profile/profile.spec.tsx
index f6fea318..65f82979 100644
--- a/frontend/app/components/profile/profile.spec.tsx
+++ b/frontend/app/components/profile/profile.spec.tsx
@@ -61,7 +61,7 @@ describe('', () => {
expect(queryByRole('heading', { name: /recent comments/i })).not.toBeInTheDocument();
});
- it('should render without comments', async () => {
+ it('should render user without comments', async () => {
jest.spyOn(pq, 'parseQuery').mockImplementation(() => ({ ...userParamsStub }));
const getUserComments = jest.spyOn(api, 'getUserComments').mockImplementation(async () => ({ comments: [] }));
diff --git a/frontend/app/components/profile/profile.tsx b/frontend/app/components/profile/profile.tsx
index 53396c78..ef27c353 100644
--- a/frontend/app/components/profile/profile.tsx
+++ b/frontend/app/components/profile/profile.tsx
@@ -173,14 +173,14 @@ export function Profile() {
{error && (
- <>
+
)}
{isCommentsLoading && }
{comments !== null && commentsJSX}