taxtank-core 0.22.1 → 0.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -166,7 +166,8 @@
166
166
  });
167
167
  // clone request to add new parameters
168
168
  var clonedReq = request.clone();
169
- if (!params.get('financialYear') && !request.urlWithParams.includes('?financialYear')) {
169
+ // @TODO query params should be passed using second param of get request and HttpParams object
170
+ if (!params.get('financialYear') && !request.urlWithParams.includes('?financialYear') && !request.urlWithParams.includes('&financialYear')) {
170
171
  params = params.set('financialYear', localStorage.getItem('financialYear'));
171
172
  clonedReq = request.clone({
172
173
  params: params