Skip to content

Transactions and deposits counts on the table summary are rendered as "undefined" while the data is loading. #1639

@naman03malhotra

Description

@naman03malhotra

The following behavior is applicable for both Transactions and Deposits tables.

Presently we render the number of transactions and deposits in the summary section of the respective tables. While the data is being fetched from the server the count is rendered as undefined.

Screenshot 2021-04-21 at 3 42 00 AM

Screenshot 2021-04-21 at 3 56 33 AM

The same issue can be replicated if the WCPay server is not running and still being proxied by WCPay dev plugin, i.e When API call is failing which results in depositsSummary being an empty object.

Steps to reproduce:

  • goto develop branch.
  • try loading deposits or transactions page, and watch the table summary (bottom of the table).
  • you should see undefined transaction while the table data is being loaded.

Potential solutions:

  1. We can hide the summary from being rendered all together, until we have the final data to display.
  2. We can keep the default count as Zero always.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions