Skip to content

Commit f4fb12f

Browse files
committed
Add console.log
1 parent 373c901 commit f4fb12f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Servers/UI/OJS.Servers.Ui/ClientApp/src/pages/contests/ContestsPage.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ const ContestsPage = () => {
8989

9090
useEffect(() => {
9191
if (allContests && !isNilOrEmpty(allContests)) {
92+
console.log('allContests fetched', allContests);
93+
console.log('type of allContests fetched', typeof allContests);
9294
dispatch(setContests(allContests));
9395
}
9496
}, [ allContests, dispatch ]);
@@ -105,6 +107,9 @@ const ContestsPage = () => {
105107
if (!Array.isArray(contests?.items)) {
106108
console.log('The value of the contests is:');
107109
console.log(contests);
110+
console.log('type of contests', typeof contests);
111+
console.log('allContests', allContests);
112+
console.log('type of allContests', typeof allContests);
108113
return (
109114
<Heading type={HeadingType.secondary} className={`${textColorClassName} ${styles.contestHeading}`}>
110115
The contests could not be loaded. If this problem persists, please contact an administrator.

0 commit comments

Comments
 (0)