various small bugfixes
This commit is contained in:
parent
a418741b29
commit
434f3b04cc
4 changed files with 7 additions and 11 deletions
|
@ -20,14 +20,8 @@ type Props = {
|
|||
|
||||
const WalletBalance = (props: Props) => {
|
||||
// receive transactions from parent component
|
||||
const { transactions } = props;
|
||||
const { transactions: accountTransactions } = props;
|
||||
|
||||
let accountTransactions;
|
||||
|
||||
// reverse so most recent payments come first
|
||||
if (transactions && transactions.length) {
|
||||
accountTransactions = transactions.reverse();
|
||||
}
|
||||
// const [accountStatusResponse, setAccountStatusResponse] = React.useState();
|
||||
|
||||
// const [subscriptions, setSubscriptions] = React.useState();
|
||||
|
|
|
@ -62,7 +62,7 @@ class StripeAccountConnection extends React.Component<Props, State> {
|
|||
unpaidBalance: 0,
|
||||
stripeConnectionUrl: '',
|
||||
pageTitle: 'Add Payout Method',
|
||||
stillRequiringVerification: true,
|
||||
stillRequiringVerification: false,
|
||||
accountTransactions: [],
|
||||
};
|
||||
}
|
||||
|
@ -282,7 +282,7 @@ class StripeAccountConnection extends React.Component<Props, State> {
|
|||
button="secondary"
|
||||
label={__('View Transactions')}
|
||||
icon={ICONS.SETTINGS}
|
||||
navigate={`/$/${PAGES.WALLET}?tab=account-history`}
|
||||
navigate={`/$/${PAGES.WALLET}?tab=fiat-payment-history`}
|
||||
/></>
|
||||
}
|
||||
/>
|
||||
|
|
|
@ -423,7 +423,7 @@ class SettingsStripeCard extends React.Component<Props, State> {
|
|||
button="primary"
|
||||
label={__('View Transactions')}
|
||||
icon={ICONS.SETTINGS}
|
||||
navigate={`/$/${PAGES.WALLET}?tab=payment-history`}
|
||||
navigate={`/$/${PAGES.WALLET}?tab=fiat-account-history`}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
|
|
|
@ -138,7 +138,9 @@ const WalletPage = (props: Props) => {
|
|||
(async function() {
|
||||
try {
|
||||
// get card payments customer has made
|
||||
const customerTransactionResponse = await getPaymentHistory();
|
||||
let customerTransactionResponse = await getPaymentHistory();
|
||||
|
||||
customerTransactionResponse.reverse();
|
||||
|
||||
setCustomerTransactions(customerTransactionResponse);
|
||||
} catch (err) {
|
||||
|
|
Loading…
Reference in a new issue