Browse Source

fix: Replace 'any' type with proper TypeScript typing in AccountViewView

- Replace 'as any' with 'InstanceType<typeof UserNameDialog>' for proper typing
- Update callback parameter to match component interface (name?: string)
- Eliminates TypeScript warning while maintaining type safety
pull/142/head
Matthew Raymer 1 day ago
parent
commit
cbd768ad7a
  1. 6
      src/views/AccountViewView.vue

6
src/views/AccountViewView.vue

@ -1595,9 +1595,11 @@ export default class AccountViewView extends Vue {
// IdentitySection event handlers // IdentitySection event handlers
onEditName() { onEditName() {
(this.$refs.userNameDialog as any).open((name: string) => { (this.$refs.userNameDialog as InstanceType<typeof UserNameDialog>).open(
(name?: string) => {
if (name) this.givenName = name; if (name) this.givenName = name;
}); },
);
} }
onShowQrCode() { onShowQrCode() {
this.handleQRCodeClick(); this.handleQRCodeClick();

Loading…
Cancel
Save