diff --git a/views/LnurlPay/LnurlPay.tsx b/views/LnurlPay/LnurlPay.tsx index 2cb694f5f..8d331a9db 100644 --- a/views/LnurlPay/LnurlPay.tsx +++ b/views/LnurlPay/LnurlPay.tsx @@ -17,7 +17,6 @@ import { Row } from '../..//components/layout/Row'; import InvoicesStore from '../../stores/InvoicesStore'; import LnurlPayStore from '../../stores/LnurlPayStore'; -import UnitsStore from '../../stores/UnitsStore'; import LnurlPayMetadata from './Metadata'; @@ -29,7 +28,6 @@ interface LnurlPayProps { navigation: StackNavigationProp; InvoicesStore: InvoicesStore; LnurlPayStore: LnurlPayStore; - UnitsStore: UnitsStore; route: Route<'LnurlPay', { lnurlParams: any; amount: any }>; } @@ -40,7 +38,7 @@ interface LnurlPayState { comment: string; } -@inject('InvoicesStore', 'LnurlPayStore', 'UnitsStore') +@inject('InvoicesStore', 'LnurlPayStore') @observer export default class LnurlPay extends React.Component< LnurlPayProps, @@ -69,11 +67,9 @@ export default class LnurlPay extends React.Component< } stateFromProps(props: LnurlPayProps) { - const { UnitsStore, route } = props; + const { route } = props; const { lnurlParams: lnurl, amount } = route.params ?? {}; - UnitsStore.resetUnits(); - return { amount: amount && amount != 0