Skip to content

Commit

Permalink
views/Receive: autogen tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloudis committed Mar 16, 2023
1 parent 250da92 commit 98a4e2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stores/InvoicesStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export default class InvoicesStore {
routeHints?: boolean,
addressType?: string
) => {
this.creatingInvoice = true;
return this.createInvoice(
memo,
value,
Expand All @@ -127,7 +128,6 @@ export default class InvoicesStore {
rHash: string;
paymentRequest: string;
}) => {
this.creatingInvoice = true;
if (BackendUtils.supportsOnchainReceiving()) {
return this.getNewAddress(
addressType
Expand Down
4 changes: 2 additions & 2 deletions views/Receive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default class Receive extends React.Component<
rate: 0
};

async componentDidMount() {
async UNSAFE_componentWillMount() {
const { navigation, InvoicesStore, SettingsStore } = this.props;
const { reset } = InvoicesStore;
const { settings, posStatus } = SettingsStore;
Expand Down Expand Up @@ -917,7 +917,7 @@ export default class Receive extends React.Component<
)}
</>
)}
{creatingInvoice && (
{(creatingInvoice || loading) && (
<View style={{ top: 40 }}>
<LoadingIndicator />
</View>
Expand Down

0 comments on commit 98a4e2d

Please sign in to comment.