Created
December 8, 2022 20:42
-
-
Save salemhilal/80a275b24aced68bd6787149285d9858 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/components/hosted_page/UsageFetcher.tsx b/src/components/hosted_page/UsageFetcher.tsx | |
index f12faed6..9a9f242a 100644 | |
--- a/src/components/hosted_page/UsageFetcher.tsx | |
+++ b/src/components/hosted_page/UsageFetcher.tsx | |
@@ -33,10 +33,7 @@ export const UsageFetcher = () => { | |
itIsDefinitelyThereAndIfItIsntSalemWillWakeMeUpAtThreeInTheMorning( | |
item.meter_type, | |
), | |
- unitName: | |
- itIsDefinitelyThereAndIfItIsntSalemWillWakeMeUpAtThreeInTheMorning( | |
- item.unit_name, | |
- ), | |
+ unitName: item.unit_name, | |
currentCycleUsage: | |
itIsDefinitelyThereAndIfItIsntSalemWillWakeMeUpAtThreeInTheMorning( | |
{ | |
diff --git a/src/components/hosted_page/dialogs/UpdatePaymentDetailsDialog.tsx b/src/components/hosted_page/dialogs/UpdatePaymentDetailsDialog.tsx | |
index 110351d7..4a22ed27 100644 | |
--- a/src/components/hosted_page/dialogs/UpdatePaymentDetailsDialog.tsx | |
+++ b/src/components/hosted_page/dialogs/UpdatePaymentDetailsDialog.tsx | |
@@ -19,6 +19,7 @@ import { | |
import OctaneModal from 'components/core/modal/OctaneModal'; | |
import getEnv from 'utils/get-env'; | |
import { useOcBoolean } from 'hooks/useOcBoolean'; | |
+import { ErrorBoundary } from '@sentry/nextjs'; | |
type Props = { | |
isOpen: boolean; | |
@@ -109,6 +110,7 @@ export const UpdatePaymentDetailsDialog = (props: Props) => { | |
const baseApiUrl = getEnv('NEXT_PUBLIC_API_BASE'); | |
return ( | |
+ <ErrorBoundary> | |
<StripeElements | |
loading={ | |
<Flex alignContent="center" justify="center"> | |
@@ -119,5 +121,6 @@ export const UpdatePaymentDetailsDialog = (props: Props) => { | |
> | |
<PaymentForm {...props} /> | |
</StripeElements> | |
+ </ErrorBoundary> | |
); | |
}; | |
diff --git a/yarn.lock b/yarn.lock | |
index 5111c1c3..25bd8fbf 100644 | |
--- a/yarn.lock | |
+++ b/yarn.lock | |
@@ -5766,20 +5766,13 @@ | |
resolve-from "^5.0.0" | |
store2 "^2.12.0" | |
-"@stripe/react-stripe-js@^1.16.0": | |
+"@stripe/react-stripe-js@^1.16.0", "@stripe/react-stripe-js@^1.6.0": | |
version "1.16.0" | |
resolved "https://registry.yarnpkg.com/@stripe/react-stripe-js/-/react-stripe-js-1.16.0.tgz#eb9e6cec5e9fd45f9d016c7ae66c40c0e8fa5757" | |
integrity sha512-HCgaZjo2tGn7ZxMul6NAiBNYgPBIX5Bxx0lsE8DxFakp1v/JA0KZezs0HXj37Ua0clK1Ip4kVCBG0TIJsqf/Aw== | |
dependencies: | |
prop-types "^15.7.2" | |
-"@stripe/react-stripe-js@^1.6.0": | |
- version "1.15.0" | |
- resolved "https://registry.yarnpkg.com/@stripe/react-stripe-js/-/react-stripe-js-1.15.0.tgz#a381de453dfac5fc47d2d604dfa1c6a9b6fc881e" | |
- integrity sha512-nqIOuAbbAN1p/zj2d2vykMzd097ZiHbu0+EpPRcfiswBRQIQIZaPrUwmj6HGD8BRA6Wp89mZen1UJbqtsfc3ZA== | |
- dependencies: | |
- prop-types "^15.7.2" | |
- | |
"@stripe/stripe-js@^1.21.1": | |
version "1.44.1" | |
resolved "https://registry.yarnpkg.com/@stripe/stripe-js/-/stripe-js-1.44.1.tgz#376fdbed2b394c84deaa2041b8029b97e7eab3a7" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment