Skip to content

Commit

Permalink
fix: 질문등록해도 릴레이질문 등록 모달 노출 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrevile committed Aug 18, 2024
1 parent cc386a4 commit b513cf0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface ShareToKakaoProps {

export const generateKakaoShare = ({ shareLink, shareImageUrl, shareDescription }: ShareToKakaoProps) => {
const { Kakao } = window;
console.log(shareLink);

Kakao.Share.sendDefault({
objectType: 'feed',
content: {
Expand Down
9 changes: 4 additions & 5 deletions packages/web-domains/src/common/utils/getWebDomain.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
const STAGE = process.env.NEXT_PUBLIC_STAGE;
// const STAGE = process.env.NEXT_PUBLIC_STAGE;

export const getWebDomain = () => {
/**
* 왜 안됨?
*/
switch (STAGE) {
console.log(process.env.NEXT_PUBLIC_STAGE);

switch (process.env.NEXT_PUBLIC_STAGE) {
case 'production':
return 'https://moring.one';
case 'development':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import { ArrivedQuestionNotification } from '../components/ArrivedQuestionNotifi
import { SelectedTargetMemberNotification } from '../components/SelectedTargetMemberNotification';
import { useNotificationService } from '../services/useNotificationService';
export const NotificationContainer = () => {
const { notfication, handleClose, isOpen, isNotAnswerd } = useNotificationService();
const { notfication, handleClose, isOpen, isNotAnswerd, isNotRegistered } = useNotificationService();

return (
<>
{notfication?.eventType === 'QUESTION_REGISTERED' && isNotAnswerd && (
<ArrivedQuestionNotification isOpen={isOpen} onClose={handleClose} />
)}
{notfication?.eventType === 'TARGET_MEMBER' && (
{notfication?.eventType === 'TARGET_MEMBER' && isNotRegistered && (
<SelectedTargetMemberNotification isOpen={isOpen} onClose={handleClose} />
)}
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@ export const useNotificationService = () => {
handleClose,
isRefetching,
isNotAnswerd: !progressingQuestionData?.isAnswered,
isNotRegistered: !progressingQuestionData?.isQuestionRegistered,
};
};

0 comments on commit b513cf0

Please sign in to comment.