Skip to content

Commit

Permalink
[Fix] initialize useState with default value #627
Browse files Browse the repository at this point in the history
  • Loading branch information
mike2ox committed Feb 8, 2023
1 parent 58c15d5 commit 052db01
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/admin/notification/NotificationTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ interface INotificaionTable {
}

export default function NotificationTable() {
const [notificationInfo, setNotificationInfo] = useState<INotificaionTable>();
const [notificationInfo, setNotificationInfo] = useState<INotificaionTable>({
notiList: [],
totalPage: 0,
currentPage: 0,
});
const [currentPage, setCurrentPage] = useState<number>(1);
const [intraId, setIntraId] = useState<string>('');

Expand Down

0 comments on commit 052db01

Please sign in to comment.