Merge pull request #5 from Dionizioaf:fix/4/feedback-message-login-screen
Fix/4/feedback message login screen
This commit is contained in:
@@ -55,6 +55,10 @@ export function LoginForm({ className, ...props }: DivProps) {
|
|||||||
router.replace("/dashboard");
|
router.replace("/dashboard");
|
||||||
},
|
},
|
||||||
onError: (ctx) => {
|
onError: (ctx) => {
|
||||||
|
if (ctx.error.status === 500 && ctx.error.statusText === "Internal Server Error") {
|
||||||
|
toast.error("Ocorreu uma falha na requisição. Tente novamente mais tarde.");
|
||||||
|
}
|
||||||
|
|
||||||
setError(ctx.error.message);
|
setError(ctx.error.message);
|
||||||
setLoadingEmail(false);
|
setLoadingEmail(false);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -194,7 +194,11 @@ export function AccountsPage({ accounts, logoOptions }: AccountsPageProps) {
|
|||||||
|
|
||||||
{transferFromAccount && (
|
{transferFromAccount && (
|
||||||
<TransferDialog
|
<TransferDialog
|
||||||
accounts={accounts}
|
accounts={accounts.map((a) => ({
|
||||||
|
...a,
|
||||||
|
balance: a.balance ?? a.initialBalance ?? 0,
|
||||||
|
excludeFromBalance: a.excludeFromBalance ?? false,
|
||||||
|
}))}
|
||||||
fromAccountId={transferFromAccount.id}
|
fromAccountId={transferFromAccount.id}
|
||||||
currentPeriod={getCurrentPeriod()}
|
currentPeriod={getCurrentPeriod()}
|
||||||
open={transferOpen}
|
open={transferOpen}
|
||||||
|
|||||||
Reference in New Issue
Block a user