Skip to content

Commit

Permalink
Merge pull request #522 from HausDAO/feat/519-tolowercase-queries
Browse files Browse the repository at this point in the history
fixes queries if dao address isn't lowercase
  • Loading branch information
skuhlmann authored Sep 6, 2024
2 parents 98a1e81 + 5aeefe5 commit 447e49f
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion libs/moloch-v3-hooks/src/hooks/useConnectedMember.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const fetchMember = async ({
try {
const res = await findMember({
networkId: daochain,
dao: daoid,
dao: daoid.toLowerCase(),
memberAddress: address.toLowerCase(),
graphApiKeys,
});
Expand Down
2 changes: 1 addition & 1 deletion libs/moloch-v3-hooks/src/hooks/useDaoData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const fetchDao = async ({
try {
const daoRes = await findDao({
networkId: daoChain,
dao: daoId,
dao: daoId.toLowerCase(),
includeTokens: true,
graphApiKeys,
});
Expand Down
2 changes: 1 addition & 1 deletion libs/moloch-v3-hooks/src/hooks/useDaoMember.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const fetchMember = async ({

try {
const res = await findMember({
dao: daoId,
dao: daoId.toLowerCase(),
memberAddress,
networkId: daoChain,
graphApiKeys,
Expand Down
2 changes: 1 addition & 1 deletion libs/moloch-v3-hooks/src/hooks/useDaoMembers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const useDaoMembers = (props?: DaoMembersProps) => {
[queryId, { daoId, daoChain, filter, ordering, paging }],
({ pageParam }) =>
fetchMembers({
daoId,
daoId: daoId?.toLowerCase(),
daoChain,
graphApiKeys,
filter,
Expand Down
2 changes: 1 addition & 1 deletion libs/moloch-v3-hooks/src/hooks/useDaoProposal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const fetchProposal = async ({

try {
const res = await findProposal({
dao: daoId,
dao: daoId.toLowerCase(),
proposalId,
networkId: daoChain,
graphApiKeys,
Expand Down
2 changes: 1 addition & 1 deletion libs/moloch-v3-hooks/src/hooks/useDaoProposals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const useDaoProposals = (props?: DaoProposalsProps) => {
['proposals', { daoId, daoChain, filter, ordering, paging }],
({ pageParam }) =>
fetchProposals({
daoId,
daoId: daoId?.toLowerCase(),
daoChain,
graphApiKeys,
filter,
Expand Down
2 changes: 1 addition & 1 deletion libs/moloch-v3-hooks/src/hooks/useDaoRecords.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const useRecords = ({
[credentialType || recordType, { daoId, chainId }],
() =>
fetchRecords({
daoId,
daoId: daoId.toLowerCase(),
chainId: chainId as ValidNetwork,
recordType,
pageSize,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const ShamanList = ({
</ShamanListContainer>
{shamen &&
shamen.map((shaman) => (
<ShamanListContainer key={shaman.id}>
<ShamanListContainer key={`${shaman.id}-${shaman.permissions}`}>
<span className="contract">
<AddressDisplay
address={shaman.shamanAddress}
Expand Down

0 comments on commit 447e49f

Please sign in to comment.