1
0
mirror of https://github.com/Qortal/qortal-mobile.git synced 2025-03-31 09:45:53 +00:00

fix bug create account

This commit is contained in:
PhilReact 2024-10-30 19:29:00 +02:00
parent 4ce4264dea
commit 6ed45501f7

@ -851,9 +851,7 @@ function App() {
walletToBeDownloaded.wallet, walletToBeDownloaded.wallet,
walletToBeDownloaded.qortAddress walletToBeDownloaded.qortAddress
); );
await showInfo({
message: `Your wallet file was saved to internal storage, in the document folder. Keep that file secure.`,
})
} catch (error: any) { } catch (error: any) {
setWalletToBeDownloadedError(error?.message); setWalletToBeDownloadedError(error?.message);
} finally { } finally {
@ -2415,6 +2413,9 @@ function App() {
onClick={async () => { onClick={async () => {
await saveFileToDiskFunc(); await saveFileToDiskFunc();
returnToMain(); returnToMain();
await showInfo({
message: `Your wallet file was saved to internal storage, in the document folder. Keep that file secure.`,
})
}} }}
> >
Backup Account Backup Account
@ -2555,20 +2556,20 @@ function App() {
)} )}
{isShowInfo && ( {isShowInfo && (
<Dialog <Dialog
open={isShow} open={isShowInfo}
aria-labelledby="alert-dialog-title" aria-labelledby="alert-dialog-title"
aria-describedby="alert-dialog-description" aria-describedby="alert-dialog-description"
> >
<DialogTitle id="alert-dialog-title">{"Important Info"}</DialogTitle> <DialogTitle id="alert-dialog-title">{"Important Info"}</DialogTitle>
<DialogContent> <DialogContent>
<DialogContentText id="alert-dialog-description"> <DialogContentText id="alert-dialog-description">
{message.message} {messageInfo.message}
</DialogContentText> </DialogContentText>
</DialogContent> </DialogContent>
<DialogActions> <DialogActions>
<Button variant="contained" onClick={onOk} autoFocus> <Button variant="contained" onClick={onOkInfo} autoFocus>
Close Close
</Button> </Button>
</DialogActions> </DialogActions>