diff --git a/next/components/molecules/DataInformationQuery.js b/next/components/molecules/DataInformationQuery.js
index 1ef7f150..84ac9326 100644
--- a/next/components/molecules/DataInformationQuery.js
+++ b/next/components/molecules/DataInformationQuery.js
@@ -594,8 +594,10 @@ export default function DataInformationQuery({ resource }) {
>
{t('table.warningPaidPlanRequired', { returnObjects: true })[0]}
diff --git a/next/components/molecules/Menu.js b/next/components/molecules/Menu.js
index 1ea29b88..5bc6fccb 100644
--- a/next/components/molecules/Menu.js
+++ b/next/components/molecules/Menu.js
@@ -836,7 +836,7 @@ function DesktopLinks({
}
- {(path === "/search" || path === "/dataset/[dataset]" || "/user/[username]") &&
+ {(path === "/search" || path === "/dataset/[dataset]" || path === "/user/[username]") &&
{
let user
diff --git a/next/components/organisms/Dataset.js b/next/components/organisms/Dataset.js
index ece00d0e..e84fd8c6 100644
--- a/next/components/organisms/Dataset.js
+++ b/next/components/organisms/Dataset.js
@@ -276,7 +276,7 @@ export default function Dataset({
lineHeight="20px"
color="#464A51"
>
- {t('tables')}:
+ {t('resources')}:
{resource?.updates?.[0]?.latest ?
- `${formatDate(resource.updates[0].latest)}:`
+ `${formatDate(resource.updates[0].latest)}`
:
t('table.notProvided')
}: {t('table.lastUpdateBD')}
diff --git a/next/pages/dataset/[dataset].js b/next/pages/dataset/[dataset].js
index 009c47ca..f1019d18 100644
--- a/next/pages/dataset/[dataset].js
+++ b/next/pages/dataset/[dataset].js
@@ -43,7 +43,7 @@ export async function getStaticProps(context) {
return {
props: {
- ...(await serverSideTranslations(locale, ['dataset', 'common', 'menu'])),
+ ...(await serverSideTranslations(locale, ['dataset', 'common', 'menu', 'prices'])),
dataset,
},
revalidate: 30,
diff --git a/next/pages/prices.js b/next/pages/prices.js
index d70a4866..eb926b92 100644
--- a/next/pages/prices.js
+++ b/next/pages/prices.js
@@ -295,7 +295,7 @@ export const CardPrice = ({
}
export function SectionPrice() {
- const { t } = useTranslation('prices');
+ const { t, ready } = useTranslation('prices');
const { locale } = useRouter();
const [toggleAnual, setToggleAnual] = useState(true)
const [plans, setPlans] = useState(null)
@@ -304,6 +304,8 @@ export function SectionPrice() {
const [isBDEmp, setIsBDEmp] = useState({isCurrentPlan: false})
const [hasSubscribed, setHasSubscribed] = useState(true)
+ if (!ready) return null
+
async function alreadySubscribed(id) {
const result = await fetch(`/api/user/getAlreadySubscribed?p=${btoa(id)}`)
.then(res => res.json())
diff --git a/next/pages/search.js b/next/pages/search.js
index 719c2345..96bb8f1f 100644
--- a/next/pages/search.js
+++ b/next/pages/search.js
@@ -614,7 +614,7 @@ export default function SearchDatasetPage() {
color="#464A51"
marginBottom="4px"
>
- {t('tables')}
+ {t('resources')}