Skip to content

Commit

Permalink
don't format amount on change
Browse files Browse the repository at this point in the history
Signed-off-by: ryanwolhuter <[email protected]>
  • Loading branch information
ryanwolhuter committed Oct 17, 2023
1 parent 5c47f29 commit 6762b3c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion src/plugins/oSnap/Proposal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function enrichTransactionForDisplay(transaction: Transaction) {
v-for="({ type, ...details }, index) in transactionsForDisplay"
class="my-4"
>
<h4 class="mb-2">{{ type }} transaction #{{ index + 1 }}</h4>
<h4 class="mb-2">Transaction #{{ index + 1 }} {{ type }}</h4>
<ReadOnly v-for="[key, value] in Object.entries(details)" class="mb-2">
<strong class="mr-4 inline-block whitespace-nowrap">{{ key }}</strong>
<span class="break-all">{{ value }}</span>
Expand Down
16 changes: 0 additions & 16 deletions src/plugins/oSnap/components/Input/Amount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,6 @@ onMounted(() => {
input.value = formatUnits(props.modelValue, props.decimals);
}
});
watch(
() => props.modelValue,
value => {
if (value) {
input.value = formatUnits(value, props.decimals);
}
}
);
watch(
() => props.decimals,
() => {
handleInput();
}
);
</script>

<template>
Expand Down

0 comments on commit 6762b3c

Please sign in to comment.