@capytale/meta-player 0.3.8 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capytale/meta-player",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -27,7 +27,6 @@ const Countdown: FC = () => {
27
27
  const save = useSave();
28
28
 
29
29
  const showOneMinuteWarning = () => {
30
- console.log("showOneMinuteWarning");
31
30
  oneMinuteWarningShown.current = true;
32
31
  toast.current?.show({
33
32
  severity: "warn",
@@ -104,8 +103,12 @@ const Countdown: FC = () => {
104
103
  };
105
104
 
106
105
  const activityJS = useActivityJS();
106
+ const deadlineMode =
107
+ activityJS.activitySession?.activityBunch.access_tr_mode.value;
107
108
  const deadline =
108
- activityJS.activitySession?.activityBunch.access_timerange.value?.end;
109
+ !deadlineMode || deadlineMode === "none"
110
+ ? null
111
+ : activityJS.activitySession?.activityBunch.access_timerange.value?.end;
109
112
 
110
113
  const [diffMs, setDiffMs] = useState<number | null>(null);
111
114
 
@@ -137,7 +140,6 @@ const Countdown: FC = () => {
137
140
  if (mode !== "assignment") {
138
141
  return;
139
142
  }
140
- console.log("check", newDiffMs, isDirty, oneMinuteWarningShown.current);
141
143
  if (
142
144
  newDiffMs != null &&
143
145
  newDiffMs < MS_PER_MINUTE &&