Skip to content

Commit

Permalink
Few fixes...
Browse files Browse the repository at this point in the history
  • Loading branch information
pmakode-akamai committed Sep 17, 2024
1 parent 9562804 commit b53089d
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ const AkamaiBillingInvoiceText = (
// <BillingActivityPanel />
// =============================================================================

const NUM_COLS = 4;

export interface Props {
accountActiveSince?: string;
}
Expand Down Expand Up @@ -330,20 +332,20 @@ export const BillingActivityPanel = React.memo((props: Props) => {

const renderTableContent = () => {
if (accountPaymentsLoading || accountInvoicesLoading) {
return <TableRowLoading columns={4} rows={1} />;
return <TableRowLoading columns={NUM_COLS} rows={1} />;
}
if (accountPaymentsError || accountInvoicesError) {
return (
<TableRowError
colSpan={4}
message={'There was an error retrieving your billing activity.'}
colSpan={NUM_COLS}
message="There was an error retrieving your billing activity."
/>
);
}
if (orderedPaginatedData.length == 0) {
if (orderedPaginatedData.length === 0) {
return (
<TableRowEmpty
colSpan={4}
colSpan={NUM_COLS}
message="No Billing & Payment History found."
/>
);
Expand Down

0 comments on commit b53089d

Please sign in to comment.