Skip to content

Commit

Permalink
fix: refunds filters url fix (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarnaikjuspay authored Jun 4, 2024
1 parent 854d3ba commit 7e06ef7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/screens/Order/Orders.res
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ let make = (~previewOnly=false) => {

let customUI = <NoData isConfigureConnector paymentModal setPaymentModal />

let filterUrlV2 = React.useMemo1(() => {
`${Window.env.apiBaseUrl}/payments/v2/filter`
}, [Window.env.apiBaseUrl])
let filterUrlV2 = getURL(~entityName=ORDERS, ~methodType=Get, ~id=Some("v2/filter"), ())

let filtersUI = React.useMemo0(() => {
<RemoteTableFilters
Expand Down
4 changes: 1 addition & 3 deletions src/screens/Refunds/Refund.res
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ let make = () => {

let {generateReport} = HyperswitchAtom.featureFlagAtom->Recoil.useRecoilValueFromAtom

let filterUrlV2 = React.useMemo1(() => {
`${Window.env.apiBaseUrl}/payments/v2/filter`
}, [Window.env.apiBaseUrl])
let filterUrlV2 = getURL(~entityName=REFUNDS, ~methodType=Get, ~id=Some("v2/filter"), ())

<ErrorBoundary>
<div className="min-h-[50vh]">
Expand Down

0 comments on commit 7e06ef7

Please sign in to comment.