MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / getSelectedAccountEmail

Function getSelectedAccountEmail

static/js/payment.js:1236–1241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1234}
1235
1236function getSelectedAccountEmail() {
1237 const accountId = Number(document.getElementById("account-select")?.value || 0);
1238 if (!accountId) return "";
1239 const matched = (paymentAccounts || []).find((acc) => Number(acc?.id || 0) === accountId);
1240 return String(matched?.email || "").trim();
1241}
1242
1243function updateSelectedAccountEmailLabel() {
1244 const emailBtn = document.getElementById("semi-account-email-btn");

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected