diff --git a/components/TestimonyCard/ViewTestimony.tsx b/components/TestimonyCard/ViewTestimony.tsx index 6435d8df2..1ef710e33 100644 --- a/components/TestimonyCard/ViewTestimony.tsx +++ b/components/TestimonyCard/ViewTestimony.tsx @@ -1,7 +1,7 @@ import { useState, useEffect } from 'react'; import { NoResults } from "components/search/NoResults"; import { PaginationButtons } from "components/table"; -import { useTranslation } from "next-i18next"; +import { TFunction, useTranslation } from "next-i18next"; import { Card as BootstrapCard, Col, Row } from "react-bootstrap"; import styled from "styled-components"; import { Card as MapleCard } from "../Card"; @@ -64,9 +64,9 @@ const ViewTestimony = (props: UsePublishedTestimonyListing & { }; const handleFilter = (filter: string | undefined) => { - setFilter({ authorRole: filter }); + setFilter({ authorRole: filter ?? '' }); }; - + const tabs = [