Skip to content

Commit

Permalink
set initial value for offer state
Browse files Browse the repository at this point in the history
  • Loading branch information
chloehan committed Jun 28, 2024
1 parent de946c4 commit b8f8d39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/dashboard/DashboardPage/DashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function Main(){
setOffer({
itemIndex: 0,
offerAddress: import.meta.env.VITE_JOY_PB_KEY,
offerPrice: 1000,
offerPrice: 1000000,
});
}
},[step]);
Expand Down
6 changes: 5 additions & 1 deletion src/store/dashboard_context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ interface GlobalProviderProps {

const DashboardProvider: React.FC<GlobalProviderProps> = ({ children }) => {
const [isOfferModal, setIsOfferModal] = useState<boolean>(false);
const [offer, setOffer] = useState<OfferType>(null);
const [offer, setOffer] = useState<OfferType>({
itemIndex: 0,
offerAddress: '0xdddddddddddd',
offerPrice: 1000000,
});
const [data, setData] = useState<DataType>(INITIAL_DATA);
const [step, setStep] = useState<number>(0);

Expand Down

0 comments on commit b8f8d39

Please sign in to comment.