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