From 64be38704f83bfbc7fc25e7cd677c063d5ce3184 Mon Sep 17 00:00:00 2001 From: Kieran Farr Date: Wed, 3 Jul 2024 13:47:34 -0700 Subject: [PATCH] add more visible success message post-purchase --- .../modals/PaymentModal/PaymentModal.component.jsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/editor/components/modals/PaymentModal/PaymentModal.component.jsx b/src/editor/components/modals/PaymentModal/PaymentModal.component.jsx index 126b92ebf..bc5838de1 100644 --- a/src/editor/components/modals/PaymentModal/PaymentModal.component.jsx +++ b/src/editor/components/modals/PaymentModal/PaymentModal.component.jsx @@ -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 { @@ -90,7 +85,9 @@ const PaymentModal = ({ isOpen, onClose }) => { {currentUser ? (
{currentUser.isPro ? ( - +
  • +

    🎉 Congrats! Thank you for your subscription.

    +
  • ) : (
    {isLoading ? (