Resolve double partner notification.

This commit is contained in:
Patrick Fic
2022-02-07 15:04:07 -08:00
parent eb05a746c4
commit 356928ce77

View File

@@ -27,11 +27,11 @@ export function PartnerPingComponent({ bodyshop, setPartnerVersion }) {
useEffect(() => {
// Create an scoped async function in the hook
async function checkPartnerStatus() {
if (!bodyshop) return;
try {
//if (process.env.NODE_ENV === "development") return;
const PartnerResponse = await axios.post("http://localhost:1337/ping/");
const { appver, qbpath } = PartnerResponse.data;
if (!bodyshop) return;
setPartnerVersion(appver);
console.log({ appver, qbpath });
if (