We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb29ccb commit 3fab06aCopy full SHA for 3fab06a
1 file changed
apps/client/src/shared/components/sidebar/PopupPortal.tsx
@@ -1,8 +1,8 @@
1
-import { createPortal } from 'react-dom';
2
-import { useEffect, useState } from 'react';
3
import { AutoDismissToast, Popup, Toast } from '@pinback/design-system/ui';
4
import type { PopupState } from '@shared/hooks/useCategoryPopups';
5
import { graphemeLength } from '@shared/utils/grapheme';
+import { useEffect, useState } from 'react';
+import { createPortal } from 'react-dom';
6
7
interface Props {
8
popup: PopupState | null;
@@ -48,7 +48,7 @@ export default function PopupPortal({
48
49
setDraft(popup.kind === 'edit' ? (popup.name ?? '') : '');
50
51
- setShareToJobUsers(popup.kind === 'edit' ? popup.isPublic : false);
+ setShareToJobUsers(popup.kind === 'edit' ? popup.isPublic : true);
52
}, [popup]);
53
54
if (!popup) return null;
0 commit comments