Show alias errors when creating an identity

The errors weren't reactive state, so the hints never rendered.
This commit is contained in:
Rūdolfs Ošiņš
2026-10-01 18:20:24 +02:00
parent a178aaade2
commit 5d8bc00f13
2 changed files with 35 additions and 2 deletions
+2 -2
View File
@@ -16,10 +16,10 @@
let notMatchingPassphrases = $state<boolean>();
let passphraseRepeat = $state("");
let alias = $state("");
const errors: { alias: ErrorWrapper[]; passphrase: ErrorWrapper[] } = {
const errors = $state<{ alias: ErrorWrapper[]; passphrase: ErrorWrapper[] }>({
alias: [],
passphrase: [],
};
});
const validatePassphraseRepeat = debounce(() => {
if (passphrase !== passphraseRepeat && passphraseRepeat.length !== 0) {