various small bugfixes

This commit is contained in:
Anthony 2021-08-13 20:21:16 +02:00
parent a418741b29
commit 434f3b04cc
No known key found for this signature in database
GPG key ID: C386D3C93D50E356
4 changed files with 7 additions and 11 deletions

View file

@ -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();

View file

@ -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`}
/></>
}
/>

View file

@ -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`}
/>
}
/>

View file

@ -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) {