diff --git a/resources/js/Pages/Collections/Components/CollectionsHeading/RefreshButton.tsx b/resources/js/Pages/Collections/Components/CollectionsHeading/RefreshButton.tsx index f5db1e8d4..48fa11bd0 100644 --- a/resources/js/Pages/Collections/Components/CollectionsHeading/RefreshButton.tsx +++ b/resources/js/Pages/Collections/Components/CollectionsHeading/RefreshButton.tsx @@ -16,10 +16,10 @@ export const RefreshButton = ({ wallet }: { wallet: App.Data.Wallet.WalletData | const { isMdAndAbove } = useBreakpoint(); const refresh = (): void => { - void authenticatedAction((): void => { + void authenticatedAction(async () => { setDisabled(true); - void window.axios.post(route("refresh-collections")); + await window.axios.post(route("refresh-collections")); showToast({ type: "pending", diff --git a/resources/js/Pages/Collections/View.tsx b/resources/js/Pages/Collections/View.tsx index 7b62d6240..542741f0d 100644 --- a/resources/js/Pages/Collections/View.tsx +++ b/resources/js/Pages/Collections/View.tsx @@ -266,7 +266,7 @@ const CollectionsView = ({ }; const handleRefreshActivity = (): void => { - void authenticatedAction((): void => { + void authenticatedAction(async () => { setIsLoadingActivity(true); requestActivityUpdate(collection.address); @@ -275,7 +275,7 @@ const CollectionsView = ({ isExpanded: true, }); - void axios.post( + await axios.post( route("collection.refresh-activity", { collection: collection.slug, }),