Skip to content

Commit

Permalink
fix: service_id fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel0109 committed Apr 10, 2024
1 parent 8f4c693 commit 1bb0947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/getServiceId.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function ServiceIdProvider({ children }) {
fetchCalendars()
}, [])


let exceptionService = []
let baseService = []
function findService(todayDate) {
Expand Down Expand Up @@ -96,7 +96,7 @@ export function ServiceIdProvider({ children }) {
baseService.push(todayService)

if (todayService && exceptionService) {
const baseService = todayService[0]?.service_id || 'U_REG'
const baseService = todayService.map(item => item.service_id)
const allServices = exceptionService.concat(baseService)
setServiceId(allServices);

Expand Down

0 comments on commit 1bb0947

Please sign in to comment.