Skip to content

Commit f46d5f6

Browse files
committed
do not show "sign up!" button when user is ephemeral.
1 parent 051076c commit f46d5f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/packages/frontend/app/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ export const Page: React.FC = () => {
118118
const account_id = useTypedRedux("account", "account_id");
119119
const is_logged_in = useTypedRedux("account", "is_logged_in");
120120
const is_anonymous = useTypedRedux("account", "is_anonymous");
121+
const ephemeral = useTypedRedux("account", "ephemeral");
121122
const when_account_created = useTypedRedux("account", "created");
122123
const groups = useTypedRedux("account", "groups");
123124
const show_i18n = useShowI18NBanner();
@@ -152,7 +153,7 @@ export const Page: React.FC = () => {
152153
}
153154
const icon = account_tab_icon();
154155
let label, style;
155-
if (is_anonymous) {
156+
if (is_anonymous && !ephemeral) {
156157
let mesg;
157158
style = { fontWeight: "bold", opacity: 0 };
158159
if (

0 commit comments

Comments
 (0)