Skip to content

Commit

Permalink
Add workaround comment
Browse files Browse the repository at this point in the history
Signed-off-by: Patricia Reinoso <patricia.reinoso@canonical.com>
  • Loading branch information
patriciareinoso committed Dec 13, 2023
1 parent 99e07c7 commit 606eee9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/createSubscriber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const createSubscriber = async ({
},
});

// Workaround for https://github.com/omec-project/webconsole/issues/109
const existingSubscriberData = await checkResponse.json();
if (checkResponse.ok && existingSubscriberData["AuthenticationSubscription"]["authenticationMethod"]) {
throw new Error("Subscriber already exists.");
Expand Down

0 comments on commit 606eee9

Please sign in to comment.