Call the destination refresh from applyType

This commit is contained in:
ai-bot committed 2026-11-16 19:02:35 +00:00
1 parent 7235697405
commit 0c68e6ae92
1 file changed
+1 -7
+1 -7
View File
@@ -359,13 +359,7 @@
} }
// An empty destination is a withdrawal, and only kroner can be withdrawn // An empty destination is a withdrawal, and only kroner can be withdrawn
// (docs/spec.md section 3.11). // (docs/spec.md section 3.11).
var destination = document.querySelector('[name="to_market"]'); syncDestination();
var kroner = Skuld.fieldValue("leg_out_currency") === "nok";
destination.required = Boolean(spec.to) && !kroner;
var destinationHint = document.querySelector("[data-destination-hint]");
if (destinationHint) {
destinationHint.hidden = !spec.to || !kroner;
}
group("market").hidden = !spec.market; group("market").hidden = !spec.market;
var marketSelect = document.querySelector('[name="market_id"]'); var marketSelect = document.querySelector('[name="market_id"]');