Skip to content

Commit

Permalink
🚨 Remove default parameter values from action property
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraHuang22 committed Sep 11, 2024
1 parent f53723f commit 922573f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default class AppHeader extends Vue {
@walletModule.Action('signMessageMemo') signMessageMemo!: (action: string, permissions?: string[]) => Promise<any>
@walletModule.Getter('getWalletAddress') currentAddress!: string
@walletModule.Getter('getSigner') signer!: any
@bookApiModule.Action('authenticate') authenticate!: ({inputWallet = '', signature = {}}: {inputWallet?: string, signature?: any}) => Promise<any>
@bookApiModule.Action('authenticate') authenticate!: ({ inputWallet, signature }: { inputWallet?: string, signature?: any }) => Promise<any>
@bookApiModule.Action('clearSession') clearSession!: () => void
isLoading = false
Expand Down
2 changes: 1 addition & 1 deletion layouts/wallet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class WalletLayout extends Vue {
@walletModule.Action('signMessageMemo') signMessageMemo!: (action: string, permissions?: string[]) => Promise<any>
@walletModule.Getter('getSigner') signer!: any
@bookApiModule.Action('restoreSession') restoreSession!: () => void
@bookApiModule.Action('authenticate') authenticate!: ({inputWallet = '', signature = {}}: {inputWallet?: string, signature?: any}) => Promise<any>
@bookApiModule.Action('authenticate') authenticate!: ({ inputWallet, signature }: { inputWallet?: string, signature?: any }) => Promise<any>
@bookApiModule.Action('clearSession') clearSession!: () => void
@walletModule.Action toggleAlert!: (
Expand Down
2 changes: 1 addition & 1 deletion pages/auth/redirect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class RedirectPage extends Vue {
@walletModule.Getter('getSigner') signer!: any
@walletModule.Getter('getWalletAddress') currentAddress!: string
@bookApiModule.Action('authenticate') authenticate!: ({inputWallet = '', signature = {}}: {inputWallet?: string, signature?: any}) => Promise<any>
@bookApiModule.Action('authenticate') authenticate!: ({ inputWallet, signature }: { inputWallet?: string, signature?: any }) => Promise<any>
@bookApiModule.Action('clearSession') clearSession!: () => void
async mounted() {
Expand Down

0 comments on commit 922573f

Please sign in to comment.