Skip to content

Commit

Permalink
feat(auofire): included category option filter
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiomario committed Jul 2, 2024
1 parent 2297452 commit 9d61170
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { useQuery, gql } from 'bonde-core-tools';
import { Box, Text, Heading, Stat, StatLabel, StatNumber, Divider, StatGroup, Tooltip, Flex } from 'bonde-components/chakra';

const GET_EMAIL_STATS = gql`
query EmailStats($widget_id: Int!) {
email_stats(widget_id: $widget_id) {
query EmailStats($widget_id: Int!, $category: String) {
email_stats(widget_id: $widget_id, category: $category) {
stats {
open
delivered
Expand All @@ -23,7 +23,7 @@ type EmailMetricsProps = {

const EmailMetrics = ({ widgetId }: EmailMetricsProps) => {
const { data, loading, error } = useQuery(GET_EMAIL_STATS, {
variables: { widget_id: widgetId }
variables: { widget_id: widgetId, category: "autofire" }
});

if (error) {
Expand Down

0 comments on commit 9d61170

Please sign in to comment.