Getter de barrio

This commit is contained in:
Alejandro Tasistro 2025-06-20 01:05:15 -03:00
parent cdbe38e41b
commit 5a9d7cb54b

View file

@ -61,6 +61,9 @@ const getters = {
grupoDeCompraDefinido() { grupoDeCompraDefinido() {
return state.lastFetch !== null; return state.lastFetch !== null;
}, },
barrio() {
return state.nombre?.replace('_admin','') ?? '';
},
hayPedidos() { hayPedidos() {
return state.pedidos?.length > 0; return state.pedidos?.length > 0;
}, },