Skip to content

Commit

Permalink
Hide success modal when clicking outside
Browse files Browse the repository at this point in the history
Co-Authored-By: Zyrenth <[email protected]>
  • Loading branch information
Alexejhero and Zyrenth committed Jun 15, 2024
1 parent e1489e7 commit 972cf84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/www/src/modules/modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export async function openModal(redeem: Redeem | null) {

const config = await getConfig();

cart = { version: config.version, sku: redeem.sku, id: redeem.id, args: {}};
cart = { version: config.version, sku: redeem.sku, id: redeem.id, args: {} };

$modalWrapper.style.opacity = "1";
$modalWrapper.style.pointerEvents = "unset";
Expand All @@ -106,6 +106,7 @@ export async function openModal(redeem: Redeem | null) {
setTimeout(() => $modal.classList.add("active-modal"), 10);

hideProcessingModal();
hideSuccessModal();
hideErrorModal();

for (let node of Array.from($modalOptionsForm.childNodes)) $modalOptionsForm.removeChild(node);
Expand Down

0 comments on commit 972cf84

Please sign in to comment.