Skip to content

Commit 69d4aec

Browse files
authored
Merge pull request #201 from OpenWebhook/clean-domain-in-store
fix: make sure webhookstore url does not have a trailing slash
2 parents 669dc23 + c560ed0 commit 69d4aec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NavBar/StoreConfig/StoreConfigNavItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const StoreConfigNavItem = () => {
2929

3030
const { value: webhookStoreUrl } = useContext(WebhookStoreUrlContext);
3131
const accessToken = localStorage.getItem(ACCESS_TOKEN_KEY);
32-
const { get, response } = useFetch(webhookStoreUrl, {
32+
const { get, response } = useFetch(new URL(webhookStoreUrl).origin, {
3333
headers: accessToken ? { Authorization: `Bearer ${accessToken}` } : {},
3434
});
3535
const idToken = localStorage.getItem(IDENTITY_TOKEN_KEY);

0 commit comments

Comments
 (0)