Skip to content

Commit

Permalink
ui: Fix bug on add server form page (#2566)
Browse files Browse the repository at this point in the history
* fix bug on add server page

Signed-off-by: Philemon Ukane <[email protected]>

* fix issue with empty web navigation history

Signed-off-by: Philemon Ukane <[email protected]>

* Fixed pendingBonds check in checkDEX()

---------

Signed-off-by: Philemon Ukane <[email protected]>
Co-authored-by: Peter Banik <[email protected]>
  • Loading branch information
ukane-philemon and peterzen authored Oct 20, 2023
1 parent 15a7a74 commit 6d32482
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/webserver/site/src/js/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export default class Application {
async start () {
// Handle back navigation from the browser.
bind(window, 'popstate', (e: PopStateEvent) => {
const page = e.state.page
const page = e.state?.page
if (!page && page !== '') return
this.loadPage(page, e.state.data, true)
})
Expand Down
2 changes: 1 addition & 1 deletion client/webserver/site/src/js/forms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1607,7 +1607,7 @@ export class DEXAddressForm {
}
return
}
if (!this.dexToUpdate && (skipRegistration || res.paid || Object.keys(res.xc.pendingBonds).length > 0)) {
if (!this.dexToUpdate && (skipRegistration || res.paid || Object.keys(res.xc.auth.pendingBonds).length > 0)) {
await app().fetchUser()
await app().loadPage('markets')
return
Expand Down

0 comments on commit 6d32482

Please sign in to comment.