Skip to content

Commit

Permalink
add basic url
Browse files Browse the repository at this point in the history
  • Loading branch information
djeck1432 committed Sep 23, 2024
1 parent cb2245d commit cd81d40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/components/VestingTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { CONTRACT_ADDR } from '../lib/config';
import axios from 'axios';
import { useAccount } from '@starknet-react/core';
import { useQuery } from '@tanstack/react-query';
import { BASE_API_URL } from "../lib/config";

interface VestingEvent {
amount: number;
Expand All @@ -23,7 +24,7 @@ const VestingTable: React.FC = () => {
if (!address) {
return [];
}
const response = await axios.get('/api/vesting-events', {
const response = await axios.get(`${BASE_API_URL}/api/vesting-events`, {
params: {
contract: CONTRACT_ADDR,
address: address,
Expand Down

0 comments on commit cd81d40

Please sign in to comment.