back-testing-react 2.0.12 → 2.0.14

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "back-testing-react",
3
- "version": "2.0.12",
3
+ "version": "2.0.14",
4
4
  "type": "module",
5
5
  "description": "Parametric back testing application developed by NormanMax Insurance Solutions",
6
6
  "main": "dist/index.js",
@@ -412,7 +412,6 @@ const InputProxyStep = forwardRef<WizardStep, InputProxyStepProps>((props,ref) =
412
412
  <div className="ptop-10 pbot-10">
413
413
  <SelectInput
414
414
  disabled={proxy.proxyChoice != RadioChoice.DEFAULT}
415
- onLoad={(e:string | undefined) => updateLocationOption(proxy,e)}
416
415
  onChange={(e:string) => updateLocationOption(proxy,e)}
417
416
  defaultValue={proxy.locationRefId || MISSING_VALUE}
418
417
  placeholder="Select a proxy location"
@@ -427,6 +426,7 @@ const InputProxyStep = forwardRef<WizardStep, InputProxyStepProps>((props,ref) =
427
426
  errorMessage={proxy.latErrorMsg}
428
427
  readOnly={proxy.locationRefId != LocationChoice.CUSTOM}
429
428
  onChange={(e) => changeLatitude(proxy, e as number)}
429
+
430
430
  step={0.00000000001}
431
431
  min={-90}/>
432
432
  </div>
@@ -460,7 +460,6 @@ const InputProxyStep = forwardRef<WizardStep, InputProxyStepProps>((props,ref) =
460
460
  <div className="">
461
461
  <SelectInput
462
462
  disabled={proxy.proxyChoice != RadioChoice.DEFAULT}
463
- onLoad={(e:string|undefined) => updatePayoutOption(proxy,e)}
464
463
  onChange={(e:string) => updatePayoutOption(proxy,e)}
465
464
  defaultValue={payoutOptions && payoutOptions.length > 0 ? proxy.payoutTableRefId || payoutOptions[0].refId : MISSING_VALUE}
466
465
  placeholder="No Payout Tables Defined"
@@ -32,7 +32,7 @@ export function generateNewProxy(latitude:number|undefined,longitude:number|unde
32
32
  longitude:longitude,
33
33
  lngError:false,
34
34
  lngErrorMsg:"",
35
- proxyChoice:RadioChoice.DEFAULT,
35
+ proxyChoice:(latitude != undefined && longitude != undefined) ? RadioChoice.CUSTOM: RadioChoice.DEFAULT,
36
36
  payoutTableRefId:undefined,
37
37
  file:undefined,
38
38
  fileError:false,