Skip to content

Commit

Permalink
Merge pull request #1417 from Giveth/giveconomy
Browse files Browse the repository at this point in the history
Hotfix 2.2.5
  • Loading branch information
MohammadPCh authored Aug 21, 2022
2 parents 078c33f + 64cf835 commit 96e037d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "givethdapp",
"version": "2.2.4",
"version": "2.2.5",
"private": true,
"scripts": {
"build": "next build",
Expand Down
11 changes: 3 additions & 8 deletions src/features/subgraph/subgraph.thunks.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
import { createAsyncThunk } from '@reduxjs/toolkit';
import config from '@/configuration';
import { fetchXDaiInfo, fetchMainnetInfo } from './subgraph.services';
import { fetchMainnetInfo, fetchXDaiInfo } from './subgraph.services';
import { ICurrentInfo } from './subgraph.types';

export const fetchXDaiInfoAsync = createAsyncThunk(
'subgraph/fetchXDaiInfo',
async (userAddress?: string) => {
const response = await fetchXDaiInfo(userAddress);
// The value we return becomes the `fulfilled` action payload
return response;
return await fetchXDaiInfo(userAddress);
},
);

export const fetchMainnetInfoAsync = createAsyncThunk(
'subgraph/fetchMainnetInfo',
async (userAddress?: string) => {
const response = await fetchXDaiInfo(userAddress);
// The value we return becomes the `fulfilled` action payload
return response;
return await fetchMainnetInfo(userAddress);
},
);

Expand All @@ -28,7 +24,6 @@ export const fetchCurrentInfoAsync = createAsyncThunk(
props.chainId === config.MAINNET_NETWORK_NUMBER
? await fetchMainnetInfo(props.userAddress)
: await fetchXDaiInfo(props.userAddress);
// The value we return becomes the `fulfilled` action payload
return { response, chainId: props.chainId };
},
);

1 comment on commit 96e037d

@vercel
Copy link

@vercel vercel bot commented on 96e037d Aug 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

giveth-dapps-v2 – ./

giveth-dapps-v2-givethio.vercel.app
giveth.io
giveth-dapps-v2-git-main-givethio.vercel.app
www.giveth.io

Please sign in to comment.