mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
Show alias errors when creating an identity
The errors weren't reactive state, so the hints never rendered.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user