updates
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import React, { useState, useEffect, useRef } from 'react';
|
||||
import {
|
||||
Award,
|
||||
Users,
|
||||
@@ -19,6 +19,7 @@ import EmptyState from '../../shared/components/EmptyState';
|
||||
import ConfirmationDialog from '../../shared/components/ConfirmationDialog';
|
||||
import loyaltyService, { LoyaltyTier, LoyaltyReward } from '../../features/loyalty/services/loyaltyService';
|
||||
import Pagination from '../../shared/components/Pagination';
|
||||
import { logger } from '../../shared/utils/logger';
|
||||
|
||||
type Tab = 'users' | 'tiers' | 'rewards';
|
||||
|
||||
@@ -116,7 +117,7 @@ const LoyaltyManagementPage: React.FC = () => {
|
||||
const response = await loyaltyService.getProgramStatus();
|
||||
setProgramEnabled(response.data.enabled);
|
||||
} catch (error: any) {
|
||||
console.error('Failed to load program status:', error);
|
||||
logger.error('Failed to load program status', error);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user