whoopsie
This commit is contained in:
parent
063fadc7c1
commit
a042782248
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ const onButtonClick = (buttonId) => {
|
||||||
|
|
||||||
const getButtonFromPathname = (pathname) => {
|
const getButtonFromPathname = (pathname) => {
|
||||||
let button = 'button-home';
|
let button = 'button-home';
|
||||||
for (const [k, v] of buttonMap) {
|
for (const [k, v] of Object.entries(buttonMap)) {
|
||||||
if (v === pathname) {
|
if (v === pathname) {
|
||||||
button = k;
|
button = k;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue