Skip to content

Commit cadee19

Browse files
committed
style: Update fetch URL in BranchProvider to use API function for branches
1 parent 047873b commit cadee19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/context/BranchContext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const BranchProvider = ({ children }) => {
5353
useEffect(() => {
5454
const fetchBranches = async () => {
5555
try {
56-
const response = await fetch(`${apiUrl}/branches`);
56+
const response = await fetch(apiUrl('/api/branches'));
5757
const data = await response.json();
5858

5959
if (data.success && data.data && data.data.branches) {

0 commit comments

Comments
 (0)