back-testing-react 2.0.11 → 2.0.13
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
|
@@ -163,7 +163,7 @@ const InputProxyStep = forwardRef<WizardStep, InputProxyStepProps>((props,ref) =
|
|
|
163
163
|
clonedProxy.latitude = location.latitude;
|
|
164
164
|
clonedProxy.longitude = location.longitude;
|
|
165
165
|
}
|
|
166
|
-
updateProxy(clonedProxy);
|
|
166
|
+
//updateProxy(clonedProxy);
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
function addNewProxy(){
|
|
@@ -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>
|
|
@@ -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,
|