Skip to content

Commit

Permalink
#1786 :: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
migbash committed Oct 19, 2023
1 parent 7bf4370 commit 8a31d97
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@
/** @description competition (main) | imposed geo-location restriction */
geoLocationRestrictions: string[],
/** @description competition (main) | `native` status */
competitionStatus: B_C_COMP_DATA_Status
competitionStatus: B_C_COMP_DATA_Status,
/** @description competition showModal */
showModal: boolean = false
;
const
Expand Down Expand Up @@ -136,6 +138,7 @@
if (!browser) return;
$sessionStore.isShowFixtureCompetitionJoinModal = false;
showModal = false;
// ▓▓ [🐞]
// alert('Joining Competition');
Expand Down Expand Up @@ -214,13 +217,14 @@
<!--
▓▓ Cast vote modal
-->
{#if $sessionStore.isShowFixtureCompetitionJoinModal}
{#if $sessionStore.isShowFixtureCompetitionJoinModal && showModal}
<CompModalMultiple
{isViewMobile}
{isViewTablet}
balanceDeductAmount={entryFee}
targetVote={viewType}
{geoLocationRestrictions}
on:closeModal={() => $sessionStore.isShowFixtureCompetitionJoinModal = false}
on:closeModal={() => { $sessionStore.isShowFixtureCompetitionJoinModal = false; showModal = false; }}
on:confirmEntry={() => joinCompetition()}
/>
{/if}
Expand Down Expand Up @@ -269,7 +273,7 @@
w-500
btn-primary-v2
"
on:click={() => $sessionStore.isShowFixtureCompetitionJoinModal = true}
on:click={() => { $sessionStore.isShowFixtureCompetitionJoinModal = true; showModal = true; }}
class:disabled={isJoinedNotThis || competitionStatus != 'pending' || disabledJoinBtn}
class:color-grey={isJoinedNotThis || competitionStatus != 'pending' || disabledJoinBtn}
disabled={isJoinedNotThis || competitionStatus != 'pending' || disabledJoinBtn}
Expand Down
8 changes: 6 additions & 2 deletions src/lib/components/shared/COMP-Modal-Multiple.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
import sessionStore from '$lib/store/session.js';
import userBetarenaSettings from '$lib/store/user-settings.js';
import type { B_C_COMP_DATA_Prediction_Group } from '@betarena/scores-lib/types/_HASURA_.js';
// #endregion ➤ 📦 Package Imports
// #region ➤ 📌 VARIABLES
Expand All @@ -47,7 +49,9 @@
/** @description competition (main) | amount entry fee */
balanceDeductAmount: number,
/** @description competition (main) | imposed geo-location restriction */
geoLocationRestrictions: string[]
geoLocationRestrictions: string[],
/** @description target casted vote on competition by user */
targetVote: B_C_COMP_DATA_Prediction_Group
;
const
Expand Down Expand Up @@ -219,7 +223,7 @@ MODAL - DYNAMIC
color-black-2
"
>
Confirm that you wish to Join Yes and be charged for
Confirm that you wish to Join <span class="capitalize">{targetVote}</span> and be charged for
<span class="color-primary">{balanceDeductAmount} BTA</span> from your current balance.
</p>

Expand Down

0 comments on commit 8a31d97

Please sign in to comment.