Skip to content

Commit

Permalink
Switch holders backend to staging
Browse files Browse the repository at this point in the history
  • Loading branch information
voloshinskii committed Apr 9, 2024
1 parent 5c6af2f commit 6568c71
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion packages/mobile/src/components/CardsWidget/CardsWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export const CardsWidget = memo(() => {
{!state.accounts.length && !state.onboardBannerDismissed ? (
<OnboardBanner onDismissBanner={() => tk.wallet.cards.dismissOnboardBanner()} />
) : null}
{state.accounts.filter((account) => account.state === 'ACTIVE').length ? (
{state.accounts.filter((account) =>
['PENDING_CONTRACT', 'ACTIVE'].includes(account.state),
).length ? (
<>
<CardsList prepaidCards={state.prepaidCards} accounts={state.accounts} />
<Spacer y={16} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const CardsList = memo<CardsListProps>((props) => {
<List indent={false}>
{props.accounts.map((account) => (
<List.Item
disabled={account.state !== 'ACTIVE'}
disabled={!['PENDING_CONTRACT', 'ACTIVE'].includes(account.state)}
leftContent={<TonIcon showDiamond />}
onPress={openWebView(account.id)}
value={`${formatter.fromNano(account.balance)} TON`}
Expand Down
4 changes: 3 additions & 1 deletion packages/mobile/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export type AppConfigVars = {
batteryTestnetHost: string;
batteryMeanFees: string;
holdersAppEndpoint: string;
holdersTonconnect: string;
holdersService: string;
aptabaseEndpoint: string;
aptabaseAppKey: string;
Expand Down Expand Up @@ -76,7 +77,8 @@ const defaultConfig: Partial<AppConfigVars> = {
transactionExplorer: 'https://tonviewer.com/transaction/%s',
flags: {},
holdersAppEndpoint: 'https://tonkeeper-dev.holders.io/',
holdersService: 'https://card-dev.whales-api.com',
holdersTonconnect: 'https://app.holders.io',
holdersService: 'https://card-staging.whales-api.com',
tronapiHost: 'https://tron.tonkeeper.com',
tronapiTestnetHost: 'https://testnet-tron.tonkeeper.com',
batteryHost: 'https://battery.tonkeeper.com',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function useHoldersEnroll(unlockVault: () => Promise<UnlockedVault>) {
//

const manifestUrl = `${config.get(
'holdersAppEndpoint',
'holdersTonconnect',
false,
)}/jsons/tonconnect-manifest.json`;

Expand Down

0 comments on commit 6568c71

Please sign in to comment.