();
const codeCheck: number[] = [38, 38, 40, 40, 37, 39, 37, 39, 66, 65, 13];
let pluginCode: number[] = [];
@@ -34,6 +35,11 @@ const FooterPlugin = () => {
const audioExplanation = new Audio(ExplanationAudio);
audioExplanation.play();
+
+ audioExplanation.onended = () => {
+ setBootPlugin(false);
+ setBackgroundColor(undefined);
+ };
}
} else {
pluginCode = [];
@@ -48,9 +54,11 @@ const FooterPlugin = () => {
useEffect(() => {
/* If boot plugin is loaded, start explanation process */
if (bootPlugin) {
- setInterval(() => {
- setBackgroundColor(Math.floor(Math.random()*16777215).toString(16));
- }, 1250);
+ setExplanationInterval(setInterval(() => {
+ setBackgroundColor(Math.floor(Math.random() * 16777215).toString(16));
+ }, 1250));
+ } else {
+ clearInterval(explanationInterval);
}
}, [bootPlugin]);
diff --git a/src/components/profile/components/userRecordTables/UserAnnotationRecordsTable.tsx b/src/components/profile/components/userRecordTables/UserAnnotationRecordsTable.tsx
index bf462f6f..dc624d5c 100644
--- a/src/components/profile/components/userRecordTables/UserAnnotationRecordsTable.tsx
+++ b/src/components/profile/components/userRecordTables/UserAnnotationRecordsTable.tsx
@@ -34,7 +34,6 @@ const UserAnnotationRecordsTable = () => {
const pagination = usePagination({
pageSize: 25,
- resultKey: 'userAnnotations',
Method: GetCreatorAnnotations
});
@@ -56,6 +55,8 @@ const UserAnnotationRecordsTable = () => {
});
});
+ console.log(tableData);
+
return (
diff --git a/src/components/profile/components/userRecordTables/UserMasJobRecordsTable.tsx b/src/components/profile/components/userRecordTables/UserMasJobRecordsTable.tsx
index eef284d2..4a014e10 100644
--- a/src/components/profile/components/userRecordTables/UserMasJobRecordsTable.tsx
+++ b/src/components/profile/components/userRecordTables/UserMasJobRecordsTable.tsx
@@ -35,7 +35,6 @@ const UserMasJobRecordsTable = () => {
const pagination = usePagination({
pageSize: 25,
- resultKey: 'userAnnotations',
Method: GetCreatorMasJobRecords
});