@daeryun/dr_components 1.2.62 → 1.2.64

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.
@@ -59,19 +59,19 @@ const SuccessNewView = ({ data, tel }) => {
59
59
  };
60
60
  const handleFaqItemType = (isFaqActive, faqElementMaxCountInContents) => {
61
61
  if (isFaqActive && faqElementMaxCountInContents === 0) {
62
- return 'https://schema.org/FAQPage';
62
+ return undefined;
63
63
  }
64
64
  if (isFaqActive && faqElementMaxCountInContents >= 2) {
65
- return undefined;
65
+ return 'https://schema.org/FAQPage';
66
66
  }
67
67
  return 'https://schema.org/FAQPage';
68
68
  };
69
69
  const handleFaqItemScope = (isFaqActive, faqElementMaxCountInContents) => {
70
70
  if (isFaqActive && faqElementMaxCountInContents === 0) {
71
- return true;
71
+ return undefined;
72
72
  }
73
73
  if (isFaqActive && faqElementMaxCountInContents >= 2) {
74
- return undefined;
74
+ return true;
75
75
  }
76
76
  return true;
77
77
  };
@@ -90,11 +90,11 @@ const SuccessNewView = ({ data, tel }: ISuccessNewPageTypes) => {
90
90
 
91
91
  const handleFaqItemType = (isFaqActive: boolean, faqElementMaxCountInContents?: number): string | undefined => {
92
92
  if (isFaqActive && faqElementMaxCountInContents === 0) {
93
- return 'https://schema.org/FAQPage';
93
+ return undefined;
94
94
  }
95
95
 
96
96
  if (isFaqActive && (faqElementMaxCountInContents as number) >= 2) {
97
- return undefined;
97
+ return 'https://schema.org/FAQPage';
98
98
  }
99
99
 
100
100
  return 'https://schema.org/FAQPage';
@@ -102,11 +102,11 @@ const SuccessNewView = ({ data, tel }: ISuccessNewPageTypes) => {
102
102
 
103
103
  const handleFaqItemScope = (isFaqActive: boolean, faqElementMaxCountInContents?: number): true | undefined => {
104
104
  if (isFaqActive && faqElementMaxCountInContents === 0) {
105
- return true;
105
+ return undefined;
106
106
  }
107
107
 
108
108
  if (isFaqActive && (faqElementMaxCountInContents as number) >= 2) {
109
- return undefined;
109
+ return true;
110
110
  }
111
111
 
112
112
  return true;