From 07f763e1678c60ba5ef8ad30a9505de5c8746eb4 Mon Sep 17 00:00:00 2001 From: Matthew Aaron Raymer Date: Wed, 21 Dec 2022 16:08:40 +0800 Subject: [PATCH] Fixing import function --- src/views/ImportAccountView.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/views/ImportAccountView.vue b/src/views/ImportAccountView.vue index 46d16c5..dff34e8 100644 --- a/src/views/ImportAccountView.vue +++ b/src/views/ImportAccountView.vue @@ -22,10 +22,11 @@ type="text" placeholder="Seed Phrase" class="block w-full rounded border border-slate-400 mb-4 px-3 py-2" + value="{{ mnemonic }}" />
- @@ -48,8 +49,15 @@ import { Options, Vue } from "vue-class-component"; components: {}, }) export default class ImportAccountView extends Vue { + mnemonic = ""; public onCancelClick() { this.$router.back(); } + public import() { + // just to get rid of variability that might cause an error + if (this.mnemonic.trim().length > 0) { + this.mnemonic = this.mnemonic.trim().toLowerCase(); + } + } }