From 5003f8b3a26ed6f43367f0c4971c2e71d72d553e Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sat, 7 Dec 2024 16:54:45 +0800 Subject: [PATCH] not set destination amount automatically when lack of exchange rates data --- src/stores/transaction.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stores/transaction.js b/src/stores/transaction.js index d0fb614b..e13e96e6 100644 --- a/src/stores/transaction.js +++ b/src/stores/transaction.js @@ -649,6 +649,8 @@ export const useTransactionsStore = defineStore('transactions', { if (isNumber(exchangedNewValue)) { newValue = Math.floor(exchangedNewValue); newValue = getAmountWithDecimalNumberCount(newValue, decimalNumberCount); + } else { + return; } }