Skip to content

Commit

Permalink
don't update provider in preview
Browse files Browse the repository at this point in the history
  • Loading branch information
nomeguy committed Feb 25, 2023
1 parent d104a29 commit 0e9a3b0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions web/src/common/CaptchaPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ import {Button} from "antd";
import React from "react";
import i18next from "i18next";
import {CaptchaModal} from "./CaptchaModal";
import * as ProviderBackend from "../backend/ProviderBackend";
import * as UserBackend from "../backend/UserBackend";

export const CaptchaPreview = ({
provider,
providerName,
clientSecret,
captchaType,
subType,
Expand All @@ -41,9 +39,10 @@ export const CaptchaPreview = ({
provider.providerUrl = providerUrl;
if (clientSecret !== "***") {
provider.clientSecret = clientSecret;
ProviderBackend.updateProvider(owner, providerName, provider).then(() => {
setOpen(true);
});
// ProviderBackend.updateProvider(owner, providerName, provider).then(() => {
// setOpen(true);
// });
setOpen(true);
} else {
setOpen(true);
}
Expand Down

0 comments on commit 0e9a3b0

Please sign in to comment.