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 8 hours ago
parent
commit
cbd768ad7a
  1. 8
      src/views/AccountViewView.vue

8
src/views/AccountViewView.vue

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

Loading…
Cancel
Save