forked from trent_larson/crowd-funder-for-time-pwa
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
This commit is contained in:
@@ -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(
|
||||||
if (name) this.givenName = name;
|
(name?: string) => {
|
||||||
});
|
if (name) this.givenName = name;
|
||||||
|
},
|
||||||
|
);
|
||||||
}
|
}
|
||||||
onShowQrCode() {
|
onShowQrCode() {
|
||||||
this.handleQRCodeClick();
|
this.handleQRCodeClick();
|
||||||
|
|||||||
Reference in New Issue
Block a user