Skip to content

Commit

Permalink
(fix) typo and duplicate API key submit modal in OF
Browse files Browse the repository at this point in the history
  • Loading branch information
f3rno authored and JacobPlaster committed Dec 17, 2019
1 parent c6a5d80 commit 4053f90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
13 changes: 2 additions & 11 deletions src/components/OrderForm/OrderForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,24 +459,15 @@ export default class OrderForm extends React.Component {
/>
),

apiClientDisconnected && !apiClientConfigured && configureModalOpen && (
!apiClientConnected && !apiClientConfigured && configureModalOpen && (
<SubmitAPIKeysModal
key='submit-api-keys'
onClose={this.onToggleConfigureModal}
onSubmit={this.onSubmitAPIKeys}
exID={currentExchange}
apiClientConnecting={apiClientConnecting}
/>
),

(apiClientConnecting || apiClientDisconnected) && (
<SubmitAPIKeysModal
key='submit-api-keys'
onClose={this.onToggleConfigureModal}
onSubmit={this.onSubmitAPIKeys}
exID={currentExchange}
apiClientConnecting={apiClientConnecting}
/>
),
]}

{helpOpen && currentLayout && currentLayout.customHelp && (
Expand Down
6 changes: 3 additions & 3 deletions src/components/OrderForm/OrderFormModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ export default class OrderFormModal extends React.PureComponent {
)}

{apiClientConnecting && (
<span>
Connecting to exhcnage...
</span>
<span>
Connecting to exchange...
</span>
)}
</div>
</Scrollbars>
Expand Down

0 comments on commit 4053f90

Please sign in to comment.