Fix from address not showing when Send clicked from main view
Some checks failed
check / check (push) Has been cancelled
Some checks failed
check / check (push) Has been cancelled
Move renderSendTokenSelect to send.js so both the main view and address detail view call it before navigating to send. Without it, the token dropdown was stale and updateSendBalance had no context.
This commit is contained in:
@@ -7,7 +7,7 @@ const {
|
||||
truncateMiddle,
|
||||
} = require("./helpers");
|
||||
const { state, saveState, currentAddress } = require("../../shared/state");
|
||||
const { updateSendBalance } = require("./send");
|
||||
const { updateSendBalance, renderSendTokenSelect } = require("./send");
|
||||
const QRCode = require("qrcode");
|
||||
const { deriveAddressFromXpub } = require("../../shared/wallet");
|
||||
const {
|
||||
@@ -139,6 +139,7 @@ function init(ctx) {
|
||||
}
|
||||
$("send-to").value = "";
|
||||
$("send-amount").value = "";
|
||||
renderSendTokenSelect(addr);
|
||||
updateSendBalance();
|
||||
showView("send");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user