updates
This commit is contained in:
@@ -41,7 +41,8 @@ const PolicyContent = () => {
|
||||
url: `/policy?type=${type}`,
|
||||
});
|
||||
|
||||
document.title = metadata.title || `${policyTitles[type]} | GNX Soft`;
|
||||
const titleString = typeof metadata.title === 'string' ? metadata.title : `${policyTitles[type]} | GNX Soft`;
|
||||
document.title = titleString;
|
||||
|
||||
let metaDescription = document.querySelector('meta[name="description"]');
|
||||
if (!metaDescription) {
|
||||
@@ -49,7 +50,8 @@ const PolicyContent = () => {
|
||||
metaDescription.setAttribute('name', 'description');
|
||||
document.head.appendChild(metaDescription);
|
||||
}
|
||||
metaDescription.setAttribute('content', metadata.description || policyDescriptions[type]);
|
||||
const descriptionString = typeof metadata.description === 'string' ? metadata.description : policyDescriptions[type];
|
||||
metaDescription.setAttribute('content', descriptionString);
|
||||
}, [type]);
|
||||
|
||||
if (isLoading) {
|
||||
@@ -235,7 +237,7 @@ const PolicyContent = () => {
|
||||
<div className="policy-footer">
|
||||
<div className="contact-box">
|
||||
<h3>Questions?</h3>
|
||||
<p>If you have any questions about this policy, please don't hesitate to contact us.</p>
|
||||
<p>If you have any questions about this policy, please don't hesitate to contact us.</p>
|
||||
<a href="/contact-us" className="btn btn-primary">Contact Us</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user