From 801ef9da0a5eaa19b4c8c54ab1ae4f1388050009 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Fri, 16 May 2025 16:48:49 +0200 Subject: [PATCH 1/3] add option for disable cross tx link redeem, fix code that simple redeeming is working --- frontend/src/components/Inputs/InputAmount.vue | 4 +++- .../components/LinkInformations/RedeemLoggedOut.vue | 4 ++-- .../LinkInformations/RedeemSelfCreator.vue | 2 +- frontend/src/config/index.js | 1 + frontend/src/config/schema.js | 5 +++++ frontend/src/pages/TransactionLink.vue | 13 +++++++++++-- frontend/src/validationSchemas.js | 2 +- frontend/vite.config.mjs | 1 + 8 files changed, 25 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/Inputs/InputAmount.vue b/frontend/src/components/Inputs/InputAmount.vue index 2c4171ca7..50b397d67 100644 --- a/frontend/src/components/Inputs/InputAmount.vue +++ b/frontend/src/components/Inputs/InputAmount.vue @@ -81,6 +81,8 @@ watch( const normalizeAmount = (inputValue) => { amountFocused.value = false - value.value = inputValue.replace(',', '.') + if (typeof inputValue === 'string' && inputValue.length > 1) { + value.value = inputValue.replace(',', '.') + } } diff --git a/frontend/src/components/LinkInformations/RedeemLoggedOut.vue b/frontend/src/components/LinkInformations/RedeemLoggedOut.vue index 9efe95c0b..dbec1fe4b 100644 --- a/frontend/src/components/LinkInformations/RedeemLoggedOut.vue +++ b/frontend/src/components/LinkInformations/RedeemLoggedOut.vue @@ -1,6 +1,6 @@