INSR-523: Change variable name to reduce potential confusion
This commit is contained in:
parent
95e7736c52
commit
613456bba3
1 changed files with 2 additions and 2 deletions
|
|
@ -37,13 +37,13 @@ export async function saveSession({ shouldAwaitSaveSessionQueue = false, submitA
|
||||||
export async function submitWorkOrder({ submitType }) {
|
export async function submitWorkOrder({ submitType }) {
|
||||||
const store = useMainStore();
|
const store = useMainStore();
|
||||||
store.resetSubmittedOrder();
|
store.resetSubmittedOrder();
|
||||||
const shouldRegisterClaimAfterSubmission = store.isPolicyLookupSuccessful
|
const shouldRegisterClaim = store.isPolicyLookupSuccessful
|
||||||
&& store.vehicle.policyVehicleId != null
|
&& store.vehicle.policyVehicleId != null
|
||||||
&& store.vehicle.policyVehicleId >= 0
|
&& store.vehicle.policyVehicleId >= 0
|
||||||
&& store.isClaimRegistrationRequired
|
&& store.isClaimRegistrationRequired
|
||||||
&& store.issConfig.callClaimRegistrationAtEnd
|
&& store.issConfig.callClaimRegistrationAtEnd
|
||||||
&& !store.isNoComp;
|
&& !store.isNoComp;
|
||||||
if (shouldRegisterClaimAfterSubmission) {
|
if (shouldRegisterClaim) {
|
||||||
await store.registerClaim();
|
await store.registerClaim();
|
||||||
}
|
}
|
||||||
await saveSession({
|
await saveSession({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue