style: Use lowercase state codes in API URLs
/api/state/az/summary instead of /api/state/AZ/summary Backend already handles case conversion 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -91,7 +91,7 @@ export default function StateDetail() {
|
|||||||
setLoading(true);
|
setLoading(true);
|
||||||
setError(null);
|
setError(null);
|
||||||
try {
|
try {
|
||||||
const response = await api.get(`/api/state/${stateCode.toUpperCase()}/summary`);
|
const response = await api.get(`/api/state/${stateCode.toLowerCase()}/summary`);
|
||||||
if (response.data?.success && response.data.data) {
|
if (response.data?.success && response.data.data) {
|
||||||
setSummary(response.data.data);
|
setSummary(response.data.data);
|
||||||
}
|
}
|
||||||
@@ -105,7 +105,7 @@ export default function StateDetail() {
|
|||||||
const fetchStores = async () => {
|
const fetchStores = async () => {
|
||||||
setLoadingStores(true);
|
setLoadingStores(true);
|
||||||
try {
|
try {
|
||||||
const response = await api.get(`/api/state/${stateCode.toUpperCase()}/stores?limit=50`);
|
const response = await api.get(`/api/state/${stateCode.toLowerCase()}/stores?limit=50`);
|
||||||
if (response.data?.success && response.data.data?.stores) {
|
if (response.data?.success && response.data.data?.stores) {
|
||||||
setStores(response.data.data.stores);
|
setStores(response.data.data.stores);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user