Skip to content

Commit

Permalink
Merge pull request #265 from chain4travel/aeddaqqa/validators-filter
Browse files Browse the repository at this point in the history
fix(PartnerShowroom): fix filtering with validators
  • Loading branch information
aeddaqqa authored Nov 14, 2024
2 parents bb3b7dc + 38421ff commit 2c00e55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/layout/PartnersLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ const PartnersLayout = () => {
refetchPartenrData()
}
}, [activeNetwork])
const auth = useAppSelector(state => state.appConfig.isAuth)
useEffect(() => {
if (
walletName &&
Expand All @@ -103,6 +104,10 @@ const PartnersLayout = () => {
}
}, [walletName])

useEffect(() => {
if (!auth && path.includes('partners/messenger-configuration')) navigate('/login')
}, [auth, path])

const partnerCChainAddress = useMemo(() => {
let cAddress = data?.attributes?.cChainAddresses.find(
elem => elem.Network === activeNetwork?.name?.toLowerCase(),
Expand Down
2 changes: 1 addition & 1 deletion src/redux/services/partners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ export const partnersApi = createApi({
const { supportedServices, wantedServices, bots, supportedCurrencies } =
await fetchContractServices(contractAddress, provider)
let parsedSupportedServices = []
if (supportedServices) {
if (supportedServices[0]) {
parsedSupportedServices = supportedServices[0]
.map((service, index) => {
if (
Expand Down

0 comments on commit 2c00e55

Please sign in to comment.