From 7d32a8ecd76f8c1e67bb75c55ecafac45e094bac Mon Sep 17 00:00:00 2001 From: YUCLing Date: Sat, 6 Apr 2024 01:48:39 +0800 Subject: [PATCH] fix: placeholder not displaying --- js/src/forum/components/oauth/AuthorizePage.tsx | 2 +- js/src/forum/components/user/AuthorizedPage.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/forum/components/oauth/AuthorizePage.tsx b/js/src/forum/components/oauth/AuthorizePage.tsx index a6f6e48..159c267 100644 --- a/js/src/forum/components/oauth/AuthorizePage.tsx +++ b/js/src/forum/components/oauth/AuthorizePage.tsx @@ -108,7 +108,7 @@ export default class AuthorizePage extends IndexPage { view() { if (!app.session.user) { - return {app.translator.trans("rhodes-island-oauth-center.forum.authorize.not_logged_in")}; + return ; } if (this.loading) { return ; diff --git a/js/src/forum/components/user/AuthorizedPage.tsx b/js/src/forum/components/user/AuthorizedPage.tsx index 8b82693..90a757f 100644 --- a/js/src/forum/components/user/AuthorizedPage.tsx +++ b/js/src/forum/components/user/AuthorizedPage.tsx @@ -37,7 +37,7 @@ export default class AuthorizedPage extends UserPage { content() { if (this.records.length == 0) { - return {app.translator.trans('rhodes-island-oauth-center.forum.authorized.no_records')}; + return ; } return (