Skip to content

Commit

Permalink
Hide spinner in /cite notify button on logged out
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcnulty committed Dec 16, 2024
1 parent 4c00902 commit 0215867
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/gatsby-site/src/components/cite/NotifyButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import { Button, Spinner } from 'flowbite-react';

const { useTranslation, Trans } = require('react-i18next');

function NotifyButton({ subscribing, onClick, subscribed }) {
function NotifyButton({ subscribing, onClick, subscribed, userLoggedIn }) {
const { t } = useTranslation();

return (
<Button color="gray" onClick={onClick}>
<div className="flex gap-2 items-center">
{subscribing || subscribed == undefined ? (
{userLoggedIn && (subscribing || subscribed == undefined) ? (
<div>
<Spinner size="sm" />
</div>
Expand Down
1 change: 1 addition & 0 deletions site/gatsby-site/src/components/cite/Tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function Tools({
subscribing={subscribing}
onClick={subscribeToNewReports}
subscribed={isSubscribed}
userLoggedIn={isUserLoggedIn}
/>
<Button
color="gray"
Expand Down

0 comments on commit 0215867

Please sign in to comment.