Ver código fonte

HOTFIX: Not redirecting on marketplace page when not logged in

bugfix/3392
Djordje Mitrovic 2 anos atrás
pai
commit
cfafba8b4d
1 arquivos alterados com 6 adições e 3 exclusões
  1. 6
    3
      src/components/Header/Header.js

+ 6
- 3
src/components/Header/Header.js Ver arquivo

@@ -132,10 +132,13 @@ const Header = () => {
if (isAdminRoute()) {
search.setSearchStringManually(value);
} else {
if (!routeMatches(HOME_PAGE) && !routeMatches(BASE_PAGE)) {
if (
!routeMatches(HOME_PAGE) &&
!routeMatches(BASE_PAGE) &&
!routeMatches(MARKETPLACE_PAGE)
) {
const newQueryString = new URLSearchParams({ search: value });
history.push({
pathname: HOME_PAGE,
history.replace({
search: newQueryString.toString(),
});
} else {

Carregando…
Cancelar
Salvar