Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gsteenkamp89 committed Mar 25, 2024
1 parent 7cb56ed commit 4dfee57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<script setup lang="ts">
import { parseAmount } from '@/helpers/utils';
import { isAddress } from '@ethersproject/address';
import { isBigNumberish } from '@ethersproject/bignumber/lib/bignumber';
import { isHexString } from '@ethersproject/bytes';
import { RawTransaction } from '../../types';
import { createRawTransaction, parseValueInput } from '../../utils';
Expand Down Expand Up @@ -76,7 +74,7 @@ function updateValue(newValue: string) {
<AddressInput
v-model="to"
:input-props="{ required: false }"
:error="!isToValid && $t('safeSnap.invalidAddress')"
:error="!isToValid ? $t('safeSnap.invalidAddress') : undefined"
:label="$t('safeSnap.to')"
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function updateTransaction() {
}
}
watch(finalTransaction, updateTransaction);
watch(finalTransaction, updateTransaction, { deep: true });
onMounted(updateTransaction);
</script>

Expand All @@ -97,8 +97,8 @@ onMounted(updateTransaction);

<div v-if="finalTransaction" class="flex flex-col gap-2 mt-2">
<AddressInput
:modelValue="finalTransaction.to"
@change="(e: string) => updateFinalTransaction({ to: e })"
@update:model-value="(e: string) => updateFinalTransaction({ to: e })"
:model-value="finalTransaction.to"
:label="$t('safeSnap.to')"
:error="!isToValid ? 'Invalid address' : undefined"
/>
Expand Down

0 comments on commit 4dfee57

Please sign in to comment.