This commit is contained in:
hippoz 2020-10-25 16:24:26 +02:00
parent 063fadc7c1
commit a042782248

View file

@ -69,7 +69,7 @@ const onButtonClick = (buttonId) => {
const getButtonFromPathname = (pathname) => {
let button = 'button-home';
for (const [k, v] of buttonMap) {
for (const [k, v] of Object.entries(buttonMap)) {
if (v === pathname) {
button = k;
break;