diff --git a/src/components/NavbarDesktop/index.js b/src/components/NavbarDesktop/index.js index 6dd63d4b0..81fab0094 100644 --- a/src/components/NavbarDesktop/index.js +++ b/src/components/NavbarDesktop/index.js @@ -206,8 +206,8 @@ export const Navbar = ({ (contentBar.active && !isDevelopment()); const langDictionary = { - us: 'es', - es: 'us', + us: "es", + es: "us", }; const locations = locByLanguage(data.allLocationYaml, langDictionary[lang]); @@ -284,11 +284,13 @@ export const Navbar = ({
setSession({ - ...session, - language: langDictionary[lang], - locations, - })} + onClick={() => + setSession({ + ...session, + language: langDictionary[lang], + locations, + }) + } to={ session && session.pathsDictionary && currentURL ? `${session.pathsDictionary[currentURL] || ""}${ diff --git a/src/templates/calendar.js b/src/templates/calendar.js index 73479ec74..dbaf11f79 100644 --- a/src/templates/calendar.js +++ b/src/templates/calendar.js @@ -557,7 +557,8 @@ const Calendar = (props) => { margin="10px 0" textColor="white" > - {session?.location?.button.apply_button_text || content.cohorts.info.button_text} + {session?.location?.button.apply_button_text || + content.cohorts.info.button_text}