Skip to content

Commit

Permalink
Fix auth messages in 'forbidden' and 'create atbd' pages
Browse files Browse the repository at this point in the history
  • Loading branch information
vgeorge committed Dec 18, 2023
1 parent bc1eb3c commit 3f68737
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/assets/scripts/a11n/forbidden.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Link } from '../styles/clean/link';
import { useUser } from '../context/user';

function Forbidden() {
const user = useUser();
const { isLogged } = useUser();

return (
<App pageTitle='Forbidden'>
Expand All @@ -29,7 +29,7 @@ function Forbidden() {
<ContentBlock>
<Prose>
<p>You don&apos;t have access to this page!</p>
{user.isLogged ? (
{isLogged ? (
<p>
If you think this is a mistake let us know via{' '}
<a href='mailto:' title='Send us an email'>
Expand Down
4 changes: 2 additions & 2 deletions app/assets/scripts/components/new-atbd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,14 @@ const FeedbackLink = (props) => (

function NewAtbd() {
const [showMoreInfo, setShowMoreInfo] = React.useState(false);
const { user } = useUser();
const { isLogged } = useUser();

return (
<App pageTitle='New ATBD'>
<PageContent>
<Header>
<h1>ATBD Creation Choices</h1>
{!user.isLogged && (
{!isLogged && (
<Feedback>
<a href={getHostedAuthUiUrl('signup')}>Sign up</a> now to get
started!
Expand Down

0 comments on commit 3f68737

Please sign in to comment.