Skip to content

Commit

Permalink
second part
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyrenth committed Jun 10, 2024
1 parent 6ef2f52 commit 917f834
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/www/src/modules/modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const $modalInsideWrapper = $modal.getElementsByClassName("modal-inside-wrapper"
/* Descriptors */
const $modalTitle = document.getElementById("modal-title")!;
const $modalDescription = document.getElementById("modal-description")!;
const $modalDisclaimer = document.getElementById("modal-disclaimer")!;
const $modalImage = document.getElementById("modal-image")! as HTMLImageElement;

/* Price */
Expand Down Expand Up @@ -121,6 +122,7 @@ export async function openModal(redeem: Redeem | null) {
for (let node of Array.from($modalOptionsForm.childNodes)) $modalOptionsForm.removeChild(node);

$modalOptions.style.display = (redeem.args || []).length === 0 ? "none" : "flex";
$modalDisclaimer.style.display = (redeem.args || []).length === 0 ? "none" : "unset";

addOptionsFields($modalOptionsForm, redeem);
checkForm();
Expand Down

0 comments on commit 917f834

Please sign in to comment.