From 1694a21b9f7592646fba63b0888a0d8d529577a8 Mon Sep 17 00:00:00 2001 From: ntr Date: Sat, 26 Oct 2019 15:56:14 +1100 Subject: [PATCH] handle blocked stripe --- client/src/app.jsx | 9 ++++++--- client/src/components/shop.jsx | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/client/src/app.jsx b/client/src/app.jsx index e56f3044..0d668980 100644 --- a/client/src/app.jsx +++ b/client/src/app.jsx @@ -36,9 +36,12 @@ events.setWs(ws); const App = () => ( - - - + {window.Stripe + ? + + + : + } ); diff --git a/client/src/components/shop.jsx b/client/src/components/shop.jsx index 08a79fad..283e78bc 100644 --- a/client/src/components/shop.jsx +++ b/client/src/components/shop.jsx @@ -48,9 +48,12 @@ function Shop(args) {

ยค {account.balance}

- - - + {window.stripe + ? + + + :
Please unblock Stripe to use the store
+ }
);