Closed yoannisj closed 4 years ago
Adding a "Web Payments Comparison" widget to the dashboard when there are no orders in the database throws a "Division by Zero" error: https://github.com/ethercreative/web-payments/blob/master/src/widgets/Comparison.php#L122.
In case there are no commerce orders yet, the widget should show a warning or 0%.
Adding a "Web Payments Comparison" widget to the dashboard when there are no orders in the database throws a "Division by Zero" error: https://github.com/ethercreative/web-payments/blob/master/src/widgets/Comparison.php#L122.
In case there are no commerce orders yet, the widget should show a warning or 0%.