Consolidated if statements
This commit is contained in:
parent
c92ff4d1b5
commit
8348781ca7
1 changed files with 3 additions and 11 deletions
|
|
@ -1868,22 +1868,14 @@ export const actions = {
|
|||
|
||||
saveServiceLocation(context, serviceLocationInfo) {
|
||||
if (context.state.order.serviceLocationInfo) {
|
||||
if (serviceLocationInfo.zipCode !== context.state.order.serviceLocationInfo.zipCode) {
|
||||
context.commit(storeMutations.RESET_SCHEDULE);
|
||||
}
|
||||
|
||||
if (
|
||||
serviceLocationInfo.zipCode !== context.state.order.serviceLocationInfo.zipCode ||
|
||||
!deepEqual(
|
||||
serviceLocationInfo.provider,
|
||||
context.state.order.serviceLocationInfo.provider
|
||||
)
|
||||
) {
|
||||
context.commit(storeMutations.RESET_SCHEDULE);
|
||||
}
|
||||
|
||||
if (
|
||||
) ||
|
||||
serviceLocationInfo.appointmentType !==
|
||||
context.state.order.serviceLocationInfo.appointmentType
|
||||
context.state.order.serviceLocationInfo.appointmentType
|
||||
) {
|
||||
context.commit(storeMutations.RESET_SCHEDULE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue