Skip to content

Commit fd87f03

Browse files
committed
fix: labeling GBI-2456
1 parent 3e0ceb5 commit fd87f03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/adapters/entrypoints/rest/assets/static/management.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@ function getConfirmationConfig(sectionId) {
258258
if (!tempArray[idx]) tempArray[idx] = {};
259259

260260
if (input.value.trim() === '') {
261-
showErrorToast(`Please enter a non-empty value for "${input.dataset.field === 'amount' ? 'rBTC amount' : 'confirmations'}."`);
261+
const amountLabel = configKey === 'btcConfirmations' ? 'BTC amount' : 'rBTC amount';
262+
showErrorToast(`Please enter a non-empty value for "${input.dataset.field === 'amount' ? amountLabel : 'confirmations'}."`);
262263
throw new Error(`Empty ${input.dataset.field} input`);
263264
}
264265

0 commit comments

Comments
 (0)