acp listings sync

This commit is contained in:
ntr committed 2022-11-28 10:46:19 +11:00
1 parent 631942bb41
commit dfc783c936
7 files changed
+33 -13

No files matched your search

+9 -5
View File
@@ -70,9 +70,9 @@ function Home() {
const offers = useSelector((state: State) => state.acpOffers);
const ws = useSelector((state: State) => state.ws);
// useEffect(() => {
// ws.sendAcpOffers();
// }, [offers, ws]);
function sync() {
ws.sendAcpListingsSync();
}
if (!offers.length) {
return (
@@ -83,8 +83,12 @@ function Home() {
}
return (
<div class='bundles'>
{offers.map(SellerGroup)}
<div>
<button onClick={sync}> sync listings </button>
<hr />
<div class='bundles'>
{offers.map(SellerGroup)}
</div>
</div>
);
}