Commit 2ded9391 authored by Taylor Hanayik's avatar Taylor Hanayik
Browse files

move g option; ensure 0.0 and 1.0 not eval as bool

parent ac48e988
......@@ -373,10 +373,10 @@ export default function Bet() {
function updateCommandString() {
let command = 'bet '
for (let [key, value] of Object.entries({...betOpts})) {
if (value != null) {
if (value == false){
if (value !== null) {
if (value === false){
continue
} else if (value == true) {
} else if (value === true) {
// if true the just pass the key to set boolean bet values
value = ''
}
......@@ -429,10 +429,6 @@ export default function Bet() {
updateBetOptsValue={updateBetOptsValue}
f={betOpts['-f']}
/>
<GvalueField
updateBetOptsValue={updateBetOptsValue}
g={betOpts['-g']}
/>
<ActionButtons
handleMoreOptions={handleMoreOptions}
commandString={commandString}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment