Skip to content

Commit 501aa4c

Browse files
committed
Reset estimate when modal is closed
1 parent fa990a4 commit 501aa4c

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/components/modals/BuyCryptoModal.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@
255255
</template>
256256

257257
<script lang="ts">
258-
import { defineComponent, ref, computed, watch, onMounted } from '@vue/composition-api';
258+
import { defineComponent, ref, computed, watch, onMounted, onUnmounted } from '@vue/composition-api';
259259
import {
260260
PageHeader,
261261
PageBody,
@@ -911,6 +911,10 @@ export default defineComponent({
911911
fiatAmount.value = (currentLimitFiat.value || 0) * 1e2;
912912
}
913913
914+
onUnmounted(() => {
915+
estimate.value = null;
916+
});
917+
914918
return {
915919
$eurAmountInput,
916920
addressListOpened,

src/components/modals/SellCryptoModal.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@
285285
</template>
286286

287287
<script lang="ts">
288-
import { defineComponent, ref, computed, watch, onMounted } from '@vue/composition-api';
288+
import { defineComponent, ref, computed, watch, onMounted, onUnmounted } from '@vue/composition-api';
289289
import {
290290
PageHeader,
291291
PageBody,
@@ -991,6 +991,10 @@ export default defineComponent({
991991
}
992992
}
993993
994+
onUnmounted(() => {
995+
estimate.value = null;
996+
});
997+
994998
return {
995999
$cryptoAmountInput,
9961000
addressListOpened,

0 commit comments

Comments
 (0)