@appcorp/fusion-storybook 0.2.10 → 0.2.11

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.
@@ -372,7 +372,7 @@ export const useTeacherModule = () => {
372
372
  // });
373
373
  return;
374
374
  }
375
- const teacherId = state.firstName + state.lastName + uuidv4().slice(0, 5);
375
+ const teacherId = uuidv4();
376
376
  if (!teacherId) {
377
377
  showToast("Please save the teacher record first before uploading an avatar", TOAST_VARIANT.ERROR);
378
378
  // dispatch({
@@ -392,6 +392,7 @@ export const useTeacherModule = () => {
392
392
  teacherId,
393
393
  fileBase64: result.fileBase64,
394
394
  contentType: result.contentType,
395
+ workspaceId: workspace === null || workspace === void 0 ? void 0 : workspace.id,
395
396
  }),
396
397
  });
397
398
  if (!response.ok) {
@@ -425,7 +426,7 @@ export const useTeacherModule = () => {
425
426
  // payload: { key: "avatarUploading", value: false },
426
427
  // });
427
428
  }
428
- }, [dispatch, showToast, state.firstName, state.lastName]);
429
+ }, [dispatch, showToast, workspace === null || workspace === void 0 ? void 0 : workspace.id]);
429
430
  const applyFilters = useCallback(() => {
430
431
  dispatch({
431
432
  type: TEACHER_ACTION_TYPES.SET_CURRENT_PAGE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/fusion-storybook",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "scripts": {
5
5
  "build-storybook": "storybook build",
6
6
  "build:next": "next build",