Call the destination refresh from applyType
This commit is contained in:
1 parent
7235697405
commit
0c68e6ae92
1 file changed
+1
-7
@@ -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"]');
|
||||||
|
|||||||
Reference in new issue
Block a user