diff --git a/CHANGELOG.md b/CHANGELOG.md
index a1bb8704f5..06d97aa9db 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -38,6 +38,7 @@
- fix update unread badge on when muting / unmuting a chat #4020
- fix update unread badge on receiving device messages #4020
- fix target chat was not opened on notification click #3983
+- fix "Password and Account" dialog not indicating invalid credentials, making it seem that you can change password like this #4032
diff --git a/src/renderer/components/dialogs/EditAccountAndPasswordDialog.tsx b/src/renderer/components/dialogs/EditAccountAndPasswordDialog.tsx
index acd4c11f3d..ef9f23d13f 100644
--- a/src/renderer/components/dialogs/EditAccountAndPasswordDialog.tsx
+++ b/src/renderer/components/dialogs/EditAccountAndPasswordDialog.tsx
@@ -17,6 +17,7 @@ import useDialog from '../../hooks/dialog/useDialog'
import useConfirmationDialog from '../../hooks/dialog/useConfirmationDialog'
import type { DialogProps } from '../../contexts/DialogContext'
+import AlertDialog from './AlertDialog'
export default function EditAccountAndPasswordDialog({ onClose }: DialogProps) {
const tx = useTranslationFunction()
@@ -92,7 +93,9 @@ function EditAccountInner(onClose: DialogProps['onClose']) {
openDialog(ConfigureProgressDialog, {
credentials: accountSettings,
onSuccess,
- onFail: () => {},
+ onFail: error => {
+ openDialog(AlertDialog, { message: error })
+ },
})
}
diff --git a/src/renderer/hooks/useInstantOnboarding.ts b/src/renderer/hooks/useInstantOnboarding.ts
index 5b8938cb3c..d24140271a 100644
--- a/src/renderer/hooks/useInstantOnboarding.ts
+++ b/src/renderer/hooks/useInstantOnboarding.ts
@@ -15,6 +15,7 @@ import type {
VerifyContactQr,
VerifyGroupQr,
} from '../backend/qr'
+import AlertDialog from '../components/dialogs/AlertDialog'
type InstantOnboarding = {
createInstantAccount: (accountId: number) => Promise
@@ -135,7 +136,9 @@ export default function useInstantOnboarding(): InstantOnboarding {
reject(error)
}
},
- onFail: () => {},
+ onFail: error => {
+ openDialog(AlertDialog, { message: error })
+ },
})
})
},