fix: reload before fetch. input type=submit reload the spa

This commit is contained in:
Sebastian 2022-12-22 12:25:26 -03:00
parent f1962dceb3
commit 43a543b41f
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1
4 changed files with 5 additions and 5 deletions

View File

@ -87,7 +87,7 @@ export function LoginForm(): VNode {
/>
<br />
<button
type="submit"
type="button"
class="pure-button pure-button-primary"
disabled={!!errors}
onClick={() => {

View File

@ -155,7 +155,7 @@ export function PaytoWireTransferForm({
<p style={{ display: "flex", justifyContent: "space-between" }}>
<input
type="submit"
type="button"
class="pure-button pure-button-primary"
disabled={!!errorsWire}
value="Send"
@ -274,7 +274,7 @@ export function PaytoWireTransferForm({
<p>
<input
class="pure-button pure-button-primary"
type="submit"
type="button"
disabled={!!errorsPayto}
value={i18n.str`Send`}
onClick={async () => {

View File

@ -84,7 +84,7 @@ function RegistrationForm(): VNode {
<h1 class="nav">{i18n.str`Welcome to ${bankUiSettings.bankName}!`}</h1>
<article>
<div class="register-div">
<form action="javascript:void(0);" class="register-form" noValidate>
<form class="register-form" noValidate>
<div class="pure-form">
<h2>{i18n.str`Please register!`}</h2>
<p class="unameFieldLabel registerFieldLabel formFieldLabel">

View File

@ -80,7 +80,7 @@ export function WalletWithdrawForm({
<input
id="select-exchange"
class="pure-button pure-button-primary"
type="submit"
type="button"
value={i18n.str`Withdraw`}
onClick={() => {
submitAmount = validateAmount(submitAmount);