Skip to content

Commit

Permalink
Fix conflict: stripe-embed <-- v1.9.2 (#2625)
Browse files Browse the repository at this point in the history
* update

* exact version

* exact version install

* update env access
  • Loading branch information
ap-justin authored and 0xNeshi committed Jan 5, 2024
1 parent 3de6c05 commit b73f032
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
PUBLIC_ENVIRONMENT=<STAGING | PRODUCTION>

REACT_APP_PUBLIC_STRIPE_KEY_PRODUCTION=
REACT_APP_PUBLIC_STRIPE_KEY_STAGING=
PUBLIC_STRIPE_KEY=
3 changes: 1 addition & 2 deletions src/constants/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ const ENV = process.env.PUBLIC_ENVIRONMENT;

export const IS_TEST = ENV === "STAGING";

export const PUBLIC_STRIPE_KEY =
process.env[`REACT_APP_PUBLIC_STRIPE_KEY_${ENV}`] || "";
export const PUBLIC_STRIPE_KEY = process.env.PUBLIC_STRIPE_KEY || "";
6 changes: 6 additions & 0 deletions src/services/apes/apes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ChainID } from "types/chain";
import { version as v } from "services/helpers";
import { APIs } from "constants/urls";
import { apiEnv } from "../constants";
import { version as v } from "../helpers";
import { tags } from "./tags";

type StripePaymentIntentParams = {
Expand Down Expand Up @@ -57,6 +58,10 @@ export const apes = createApi({
tokens: builder.query<Token[], ChainID>({
query: (chainID) => `v1/tokens/${chainID}`,
}),

endowBalance: builder.query<EndowmentBalances, number>({
query: (endowId) => `${v(1)}/balances/${endowId}`,
}),
}),
});

Expand All @@ -66,6 +71,7 @@ export const {
useGetStripePaymentStatusQuery,
useStripeCurrenciesQuery,
useTokensQuery,
useEndowBalanceQuery,
util: {
invalidateTags: invalidateApesTags,
updateQueryData: updateApesQueryData,
Expand Down

0 comments on commit b73f032

Please sign in to comment.