Skip to content

Commit

Permalink
Swap Confirmation: make waiting message: a button
Browse files Browse the repository at this point in the history
  • Loading branch information
monokh committed Jun 19, 2019
1 parent 6923dde commit 70c4ce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/containers/SwapInitiation/SwapInitiation.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class SwapInitiation extends Component {
? <ExpirationDetails />
: <InitiatorExpirationInfo /> }
{!errors.initiation && !this.props.isPartyB && <Button wide primary loadingMessage={this.props.loadingMessage} onClick={this.props.initiateSwap}>Initiate Swap</Button>}
{!errors.initiation && this.props.isPartyB && <Button wide primary loadingMessage={this.props.loadingMessage} onClick={this.props.confirmSwap}>Confirm Terms</Button>}<br />
{errors.initiation && <div className='SwapInitiation_errorMessage'>{errors.initiation}</div>}
{!errors.initiation && this.props.isPartyB && <Button wide primary loadingMessage={this.props.loadingMessage} onClick={this.props.confirmSwap}>Confirm Terms</Button>}
{errors.initiation && <Button primary disabled>{ errors.initiation }</Button>}<br />
{/* TODO: Do actual resetting of app state instead of refresh. */}
<Button wide link onClick={() => window.location.replace(APP_BASE_URL)}>{ this.props.isPartyB ? 'Abandon Swap' : 'Cancel' }</Button>
</div>
Expand Down

0 comments on commit 70c4ce2

Please sign in to comment.