Skip to content

Commit

Permalink
fix null error when deleting subscriber
Browse files Browse the repository at this point in the history
Signed-off-by: Patricia Reinoso <[email protected]>
  • Loading branch information
patriciareinoso committed Mar 12, 2024
1 parent 86cb96e commit 7426669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/deleteSubscriber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const deleteSubscriber = async (imsi: string) => {

const deviceGroup = await deviceGroupResponse.json();

if (deviceGroup.imsis.includes(imsi)) {
if (deviceGroup.imsis?.includes(imsi)) {
deviceGroup.imsis = deviceGroup.imsis.filter(
(id: string) => id !== imsi,
);
Expand Down

0 comments on commit 7426669

Please sign in to comment.