Skip to content

Commit

Permalink
feat: adds profile query param while loading payment options
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitb35 committed Jul 29, 2024
1 parent 120fe93 commit 3db11b3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Layout/QueryParamContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ const QueryParamProvider: FC = ({ children }) => {
shouldSetPaymentDetails: true,
});
}
}, [router.query.to, country]);
}, [router.query.to, country, profile]);

async function loadConfig() {
try {
Expand Down Expand Up @@ -490,7 +490,9 @@ const QueryParamProvider: FC = ({ children }) => {
setIsPaymentOptionsLoading(true);
try {
const requestParams = {
url: `/app/paymentOptions/${projectGUID}?country=${paymentSetupCountry}`,
url: `/app/paymentOptions/${projectGUID}?country=${paymentSetupCountry}${
profile !== null ? `&profile=${profile?.id}` : ""
}`,
setshowErrorCard,
tenant,
locale: i18n.language,
Expand Down

0 comments on commit 3db11b3

Please sign in to comment.