create address + fix location restaurant

This commit is contained in:
hamid zarghami
2025-11-27 09:47:14 +03:30
parent b3716d8602
commit fa7f95df43
17 changed files with 711 additions and 368 deletions
+3 -2
View File
@@ -27,8 +27,9 @@ const processQueue = (error: unknown, token: string | null = null) => {
// Attach access token to requests
api.interceptors.request.use((config) => {
const state = useAuthStore.getState();
const token = state.user?.accessToken;
const token = localStorage.getItem(
process.env.NEXT_PUBLIC_TOKEN_NAME as string
);
if (token) {
config.headers = config.headers || {};