Skip to content

Commit

Permalink
add more visible success message post-purchase
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarr committed Jul 3, 2024
1 parent dd3795a commit 64be387
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ const PaymentModal = ({ isOpen, onClose }) => {
const { currentUser } = useAuthContext();
const [isLoading, setIsLoading] = useState(false);

const isSucess = window.location.hash.includes('/success');
if (isSucess) {
STREET.notify.successMessage('Thank you for subscribing!');
}

const startCheckout = async () => {
setIsLoading(true);
try {
Expand Down Expand Up @@ -90,7 +85,9 @@ const PaymentModal = ({ isOpen, onClose }) => {
{currentUser ? (
<div className="paymentButton">
{currentUser.isPro ? (
<CheckMark32Icon />
<li>
<h3>🎉 Congrats! Thank you for your subscription.</h3>
</li>
) : (
<div>
{isLoading ? (
Expand Down

0 comments on commit 64be387

Please sign in to comment.