Skip to content

Commit

Permalink
fix get subscribers
Browse files Browse the repository at this point in the history
  • Loading branch information
patriciareinoso committed Jul 29, 2024
1 parent e0b1e0d commit 216f56a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/getSubscribers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export const getSubscribers = async () => {

const getSubscriber = async (imsi: string) => {
try {
const response = await apiGetSubscriber(imsi);
const numericPart = imsi.split("-")[1];
const response = await apiGetSubscriber(numericPart);
if (!response.ok)
throw new Error(
`Failed to fetch subscriber. Status: ${response.status}`,
Expand Down

0 comments on commit 216f56a

Please sign in to comment.