Skip to content

Commit

Permalink
fix wallet-address input
Browse files Browse the repository at this point in the history
  • Loading branch information
yehor-podporinov committed Mar 16, 2023
1 parent 6fa76b0 commit 860e578
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/forms/DocCreationForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ const { isFieldsValid } = useFormValidation(form, {
const addIndicatedAddress = (address: string) => {
if (isAddress(address) && !form.indicatedAddresses.includes(address)) {
form.indicatedAddresses.unshift(address)
form.indicatedAddresses.unshift(
address.startsWith('0x') ? address : `0x${address}`,
)
nextTick(() => (walletAddress.value = ''))
}
}
Expand Down

0 comments on commit 860e578

Please sign in to comment.