Skip to content

Commit

Permalink
fix: #940
Browse files Browse the repository at this point in the history
  • Loading branch information
migbash committed Feb 16, 2023
1 parent c4949bd commit 96b2d7d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/lib/components/fixtures_page/votes/Vote_Widget.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -632,13 +632,27 @@
$: if (condition) {
init_vote();
}
////
$: if (
(FIXTURE_VOTES_DATA?.match_votes != undefined && FIXTURE_NO_VOTES_OPT.includes(FIXTURE_VOTES_DATA?.status))
&& (
FIXTURE_VOTES_DATA?.match_votes.vote_win_local == 0
&& FIXTURE_VOTES_DATA?.match_votes.vote_draw_x == 0
&& FIXTURE_VOTES_DATA?.match_votes.vote_win_visitor == 0
)
) {
no_widget_data = true;
}
</script>

<!-- ===============
COMPONENT HTML
=================-->

<div id="widget-outer" class:display_none={no_widget_data && !show_placeholder}>
<div id="widget-outer"
class:display_none={no_widget_data && !show_placeholder}>
<!--
[ℹ] SEO-DATA-LOADED
-->
Expand Down

0 comments on commit 96b2d7d

Please sign in to comment.