Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardarhia committed Aug 23, 2024
1 parent b4488b4 commit 80033d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/stock/InspectStock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ const InspectStock: FC<InspectStockProps> = ({ selectedStock, handleDrawerOpen,
{selectedStock.status !== "pending" && type !== "view" && "View Stock"}
</Button>
</div>
{selectedStock.status === "approved" && <Button onClick={handlePayStock}>Pay stock</Button>}
{selectedStock.status === "approved" && selectedStock?.creditorData && (
<Button onClick={handlePayStock}>Pay stock</Button>
)}
</div>
</Drawer>
);
Expand Down

0 comments on commit 80033d7

Please sign in to comment.